fix(angular_1_router): Removed arrow function from module template

Closes #8076
This commit is contained in:
Brandon Roberts 2016-04-14 17:23:55 -05:00 committed by Brandon
parent 22c05b0834
commit d094a85647
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ function routerFactory($q, $location, $browser, $rootScope, $injector, $routerRo
controller.$routeConfig.forEach(function (config) {
var loader = config.loader;
if (isPresent(loader)) {
config = angular.extend({}, config, { loader: () => $injector.invoke(loader) });
config = angular.extend({}, config, { loader: function() { return $injector.invoke(loader); } });
}
that.config(component, config);
});