From a5941132ef8bc4fdfaf53afffc966bfef1b25399 Mon Sep 17 00:00:00 2001 From: Richard Littauer Date: Sat, 24 May 2014 12:19:16 -0700 Subject: [PATCH] fix(ngView): remove reference to scope $route.name.scope.current returns undefined in the docs example, as scope is never injected into the relevant controller. Scope doesn't need to be there, so it's best to just remove it. Suggested in #5076. --- src/ngRoute/directive/ngView.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/ngRoute/directive/ngView.js b/src/ngRoute/directive/ngView.js index 85049d4a3163..02ae2aeb3c81 100644 --- a/src/ngRoute/directive/ngView.js +++ b/src/ngRoute/directive/ngView.js @@ -56,7 +56,6 @@ ngRouteModule.directive('ngView', ngViewFillContentFactory);
$location.path() = {{main.$location.path()}}
$route.current.templateUrl = {{main.$route.current.templateUrl}}
$route.current.params = {{main.$route.current.params}}
-
$route.current.scope.name = {{main.$route.current.scope.name}}
$routeParams = {{main.$routeParams}}