aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/rootScope.js
diff options
context:
space:
mode:
authorMatias Niemelä2013-04-02 18:20:33 -0400
committerMisko Hevery2013-04-02 15:52:32 -0700
commit2845dd159087fc59eb29845a578f32c7c462e8e6 (patch)
tree991fd12f424fd432a658bdd93ea5c4c5d922ee18 /src/ng/rootScope.js
parent0b6f1ce5f89f47f9302ff1e8cd8f4b92f837c413 (diff)
downloadangular.js-2845dd159087fc59eb29845a578f32c7c462e8e6.tar.bz2
feat(ngdocs): added functionality to import and extract contents of external files inside docs comment code
Diffstat (limited to 'src/ng/rootScope.js')
-rw-r--r--src/ng/rootScope.js20
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