Skip to content

Commit 3fc95e0

Browse files
RichardLittbtford
authored andcommitted
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 angular#5076.
1 parent 3ec4af9 commit 3fc95e0

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

src/ngRoute/directive/ngView.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ ngRouteModule.directive('ngView', ngViewFillContentFactory);
5656
<pre>$location.path() = {{main.$location.path()}}</pre>
5757
<pre>$route.current.templateUrl = {{main.$route.current.templateUrl}}</pre>
5858
<pre>$route.current.params = {{main.$route.current.params}}</pre>
59-
<pre>$route.current.scope.name = {{main.$route.current.scope.name}}</pre>
6059
<pre>$routeParams = {{main.$routeParams}}</pre>
6160
</div>
6261
</file>

0 commit comments

Comments
 (0)