diff options
Diffstat (limited to 'src/service/updateView.js')
| -rw-r--r-- | src/service/updateView.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/service/updateView.js b/src/service/updateView.js index 9ac7c1fb..b51e719b 100644 --- a/src/service/updateView.js +++ b/src/service/updateView.js @@ -35,8 +35,8 @@ * without angular knowledge and you may need to call '$updateView()' directly. * * Note: if you wish to update the view immediately (without delay), you can do so by calling - * {@link angular.scope.$eval} at any time from your code: - * <pre>scope.$root.$eval()</pre> + * {@link angular.scope.$apply} at any time from your code: + * <pre>scope.$apply()</pre> * * In unit-test mode the update is instantaneous and synchronous to simplify writing tests. * @@ -47,7 +47,7 @@ function serviceUpdateViewFactory($browser){ var scheduled; function update(){ scheduled = false; - rootScope.$eval(); + rootScope.$flush(); } return $browser.isMock ? update : function(){ if (!scheduled) { |
