Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

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 #5076.
1 parent 3ec4af9 commit 3fc95e0

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/ngRoute/directive/ngView.js

-1
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)