diff --git a/docs/content/guide/scope.ngdoc b/docs/content/guide/scope.ngdoc index 342877d70d43..9fdefdfa065a 100644 --- a/docs/content/guide/scope.ngdoc +++ b/docs/content/guide/scope.ngdoc @@ -126,13 +126,14 @@ a diagram depicting the scope boundaries.
    -
  1. {{name}}
  2. +
  3. {{name}} from {{department}}
- function GreetCtrl($scope) { + function GreetCtrl($scope, $rootScope) { $scope.name = 'World'; + $rootScope.department = 'Angular'; } function ListCtrl($scope) { @@ -153,7 +154,7 @@ a diagram depicting the scope boundaries. Notice that Angular automatically places `ng-scope` class on elements where scopes are attached. The `