mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-24 03:55:49 +08:00
doc($rootScope): fix $digest example
This commit is contained in:
@@ -347,7 +347,7 @@ function $RootScopeProvider(){
|
|||||||
scope.counter = 0;
|
scope.counter = 0;
|
||||||
|
|
||||||
expect(scope.counter).toEqual(0);
|
expect(scope.counter).toEqual(0);
|
||||||
scope.$watch('name', function(scope, newValue, oldValue) {
|
scope.$watch('name', function(newValue, oldValue) {
|
||||||
counter = counter + 1;
|
counter = counter + 1;
|
||||||
});
|
});
|
||||||
expect(scope.counter).toEqual(0);
|
expect(scope.counter).toEqual(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user