aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/guide/dev_guide.scopes.internals.ngdoc
diff options
context:
space:
mode:
authorVojta Jina2011-11-30 12:23:58 -0800
committerVojta Jina2012-01-23 11:11:27 -0800
commit0196411dbe179afe24f4faa6d6503ff3f69472da (patch)
tree8c79c809b884af8385ad2695c4885b18a5efa369 /docs/content/guide/dev_guide.scopes.internals.ngdoc
parent992c790f0786fa45c1cc3710f29bf49c7c322ba7 (diff)
downloadangular.js-0196411dbe179afe24f4faa6d6503ff3f69472da.tar.bz2
refactor(scope.$watch): rearrange arguments passed into watcher (newValue, oldValue, scope)
As scopes are injected into controllers now, you have the reference anyway, so having scope as first argument makes no sense… Breaks $watcher gets arguments in different order (newValue, oldValue, scope)
Diffstat (limited to 'docs/content/guide/dev_guide.scopes.internals.ngdoc')
-rw-r--r--docs/content/guide/dev_guide.scopes.internals.ngdoc2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/content/guide/dev_guide.scopes.internals.ngdoc b/docs/content/guide/dev_guide.scopes.internals.ngdoc
index 66d57a9f..a81d8803 100644
--- a/docs/content/guide/dev_guide.scopes.internals.ngdoc
+++ b/docs/content/guide/dev_guide.scopes.internals.ngdoc
@@ -187,7 +187,7 @@ within the unit-tests.
// example of a test
it('should trigger a watcher', inject(function($rootScope) {
var scope = $rootScope;
- scope.$watch('name', function(scope, name){
+ scope.$watch('name', function(name) {
scope.greeting = 'Hello ' + name + '!';
});