diff options
| author | Matias Niemelä | 2013-04-02 18:20:33 -0400 | 
|---|---|---|
| committer | Misko Hevery | 2013-04-02 15:52:32 -0700 | 
| commit | 2845dd159087fc59eb29845a578f32c7c462e8e6 (patch) | |
| tree | 991fd12f424fd432a658bdd93ea5c4c5d922ee18 /src | |
| parent | 0b6f1ce5f89f47f9302ff1e8cd8f4b92f837c413 (diff) | |
| download | angular.js-2845dd159087fc59eb29845a578f32c7c462e8e6.tar.bz2 | |
feat(ngdocs): added functionality to import and extract contents of external files inside docs comment code
Diffstat (limited to 'src')
| -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 | 
