mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
docs(scope): fix typo $digest -> $watch
This commit is contained in:
parent
212a6ff29a
commit
50eb7f15b8
1 changed files with 1 additions and 1 deletions
|
|
@ -301,7 +301,7 @@ function $RootScopeProvider(){
|
|||
scope.counter = 0;
|
||||
|
||||
expect(scope.counter).toEqual(0);
|
||||
scope.$digest('name', function(scope, newValue, oldValue) {
|
||||
scope.$watch('name', function(scope, newValue, oldValue) {
|
||||
counter = counter + 1;
|
||||
});
|
||||
expect(scope.counter).toEqual(0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue