mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-05-31 02:41:32 +08:00
docs(scope): fix typo $digest -> $watch
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user