mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-20 04:11:51 +00:00
doc($rootScope): fix $digest example
This commit is contained in:
parent
aa02534865
commit
4e65635f85
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue