Skip to content

Commit

Permalink
Fully implement angular loadModule
Browse files Browse the repository at this point in the history
  • Loading branch information
RStankov committed Oct 12, 2014
1 parent 6464183 commit 3f63383
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions boilerplates/angular_plugin/tests/module_name_test.js
Expand Up @@ -4,8 +4,9 @@ function loadModule(module, name) {
name || (name = module);

var loaded;
angular.injector(['ng', module], false).invoke(function() {
});
angular.injector(['ng', module], false).invoke([name, function(module) {
loaded = module;
}]);

return loaded;
}
Expand Down

0 comments on commit 3f63383

Please sign in to comment.