From d094a85647af04a67620ed1287103aeee3936298 Mon Sep 17 00:00:00 2001 From: Brandon Roberts Date: Thu, 14 Apr 2016 17:23:55 -0500 Subject: [PATCH] fix(angular_1_router): Removed arrow function from module template Closes #8076 --- modules/angular1_router/src/module_template.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/angular1_router/src/module_template.js b/modules/angular1_router/src/module_template.js index e257e3e855..9862f9e358 100644 --- a/modules/angular1_router/src/module_template.js +++ b/modules/angular1_router/src/module_template.js @@ -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); });