#12 The angular module is not define when it use under Electron app
Showing
2 changed files
with
6 additions
and
1 deletions
1 | ## [unreleased] | ||
2 | * Fix Angular export on Electron app | ||
3 | |||
1 | ## [0.1.0] - 2016-12-10 | 4 | ## [0.1.0] - 2016-12-10 |
2 | * Fix browser import | 5 | * Fix browser import |
3 | 6 | ||
... | @@ -7,5 +10,6 @@ | ... | @@ -7,5 +10,6 @@ |
7 | * Add readme and licence | 10 | * Add readme and licence |
8 | * Add export management | 11 | * Add export management |
9 | 12 | ||
13 | [unreleased]: http://gitlab.techniv.fr/WestCoastSwing/RelativePlacement/compare/v0.1.0...master | ||
10 | [0.1.0]: http://gitlab.techniv.fr/WestCoastSwing/RelativePlacement/compare/v0.1.0-rc...v0.1.0 | 14 | [0.1.0]: http://gitlab.techniv.fr/WestCoastSwing/RelativePlacement/compare/v0.1.0-rc...v0.1.0 |
11 | [0.1.0-rc]: http://gitlab.techniv.fr/WestCoastSwing/RelativePlacement/compare/v0.0.1...v0.1.0-rc | 15 | [0.1.0-rc]: http://gitlab.techniv.fr/WestCoastSwing/RelativePlacement/compare/v0.0.1...v0.1.0-rc |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -8,11 +8,12 @@ | ... | @@ -8,11 +8,12 @@ |
8 | if(typeof global != 'undefined' && typeof module != 'undefined' && module.exports) return module.exports = definition(); | 8 | if(typeof global != 'undefined' && typeof module != 'undefined' && module.exports) return module.exports = definition(); |
9 | //Browser export | 9 | //Browser export |
10 | if(typeof window != 'undefined'){ | 10 | if(typeof window != 'undefined'){ |
11 | if(typeof angular != 'undefined' && angular.version.major == 1) return angular.module('relative-placement-js', []).factory('RelativePlacement', definition); | ||
12 | if(typeof requirejs != 'undefined') return define(definition()); | 11 | if(typeof requirejs != 'undefined') return define(definition()); |
13 | 12 | ||
14 | window.RelativePlacement = definition(); | 13 | window.RelativePlacement = definition(); |
15 | } | 14 | } |
15 | // Angular export | ||
16 | if(typeof angular != 'undefined' && angular.version.major == 1) return angular.module('relative-placement-js', []).factory('RelativePlacement', definition); | ||
16 | })(function(){ | 17 | })(function(){ |
17 | 18 | ||
18 | /** | 19 | /** | ... | ... |
-
Please register or sign in to post a comment