#11 Error on importing in browser - fix angular definition
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -8,7 +8,7 @@ | ... | @@ -8,7 +8,7 @@ |
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); | 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()); | 12 | if(typeof requirejs != 'undefined') return define(definition()); |
13 | 13 | ||
14 | window.RelativePlacement = definition(); | 14 | window.RelativePlacement = definition(); | ... | ... |
-
Please register or sign in to post a comment