aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/service/scope.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/service/scope.js b/src/service/scope.js
index dba4de1d..1c6ee63f 100644
--- a/src/service/scope.js
+++ b/src/service/scope.js
@@ -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);