fix(angular_1_router): Removed arrow function from module template
Closes #8076
This commit is contained in:
parent
22c05b0834
commit
d094a85647
|
@ -96,7 +96,7 @@ function routerFactory($q, $location, $browser, $rootScope, $injector, $routerRo
|
||||||
controller.$routeConfig.forEach(function (config) {
|
controller.$routeConfig.forEach(function (config) {
|
||||||
var loader = config.loader;
|
var loader = config.loader;
|
||||||
if (isPresent(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);
|
that.config(component, config);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue