doc($rootScope): fix $digest example

This commit is contained in:
Igor Minar 2012-05-08 16:59:46 -07:00
parent aa02534865
commit 4e65635f85

View file

@ -347,7 +347,7 @@ function $RootScopeProvider(){
scope.counter = 0;
expect(scope.counter).toEqual(0);
scope.$watch('name', function(scope, newValue, oldValue) {
scope.$watch('name', function(newValue, oldValue) {
counter = counter + 1;
});
expect(scope.counter).toEqual(0);