Skip to content

Commit

Permalink
fix: angular.bootstrap now adds modules to init, not replace them
Browse files Browse the repository at this point in the history
  • Loading branch information
ocombe committed Mar 5, 2015
1 parent 0443594 commit bdc03dd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ocLazyLoad.js
Original file line number Diff line number Diff line change
Expand Up @@ -972,7 +972,10 @@

var bootstrapFct = angular.bootstrap;
angular.bootstrap = function(element, modules, config) {
modulesToLoad = modules.slice(); // make a clean copy
// we use slice to make a clean copy
angular.forEach(modules.slice(), function(module) {
addToLoadList(module);
});
return bootstrapFct(element, modules, config);
};

Expand Down

0 comments on commit bdc03dd

Please sign in to comment.