We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22c05b0 commit d094a85Copy full SHA for d094a85
1 file changed
modules/angular1_router/src/module_template.js
@@ -96,7 +96,7 @@ function routerFactory($q, $location, $browser, $rootScope, $injector, $routerRo
96
controller.$routeConfig.forEach(function (config) {
97
var loader = config.loader;
98
if (isPresent(loader)) {
99
- config = angular.extend({}, config, { loader: () => $injector.invoke(loader) });
+ config = angular.extend({}, config, { loader: function() { return $injector.invoke(loader); } });
100
}
101
that.config(component, config);
102
});
0 commit comments