From 3fc95e06e78b3c0e3e124bc48963c9876f33a91f Mon Sep 17 00:00:00 2001 From: Richard Littauer Date: Sat, 24 May 2014 12:19:16 -0700 Subject: [PATCH] docs(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 85049d4a..02ae2aeb 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}}