diff options
Diffstat (limited to 'src/ng/rootScope.js')
| -rw-r--r-- | src/ng/rootScope.js | 20 | 
1 files changed, 1 insertions, 19 deletions
| diff --git a/src/ng/rootScope.js b/src/ng/rootScope.js index 1fad7b0e..2a4bcf76 100644 --- a/src/ng/rootScope.js +++ b/src/ng/rootScope.js @@ -83,25 +83,7 @@ function $RootScopeProvider(){       *       * Here is a simple scope snippet to show how you can interact with the scope.       * <pre> -        angular.injector(['ng']).invoke(function($rootScope) { -           var scope = $rootScope.$new(); -           scope.salutation = 'Hello'; -           scope.name = 'World'; - -           expect(scope.greeting).toEqual(undefined); - -           scope.$watch('name', function() { -             scope.greeting = scope.salutation + ' ' + scope.name + '!'; -           }); // initialize the watch - -           expect(scope.greeting).toEqual(undefined); -           scope.name = 'Misko'; -           // still old value, since watches have not been called yet -           expect(scope.greeting).toEqual(undefined); - -           scope.$digest(); // fire all  the watches -           expect(scope.greeting).toEqual('Hello Misko!'); -        }); +     * <file src="./test/ng/rootScopeSpec.js" tag="docs1" />       * </pre>       *       * # Inheritance | 
