Skip to content

Commit d4e88da

Browse files
committed
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 angular#5076
1 parent 0c2b161 commit d4e88da

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)