Skip to content

Commit 128c70f

Browse files
committed
Minor changes in the command section
1 parent 32f318a commit 128c70f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ $watch: function(watchExp, listener, objectEquality) {
865865
//...
866866
```
867867
868-
We can think of the `watcher` object as a command. The expression of the command is being evaluated on each `"$digest"` loop, once AngularJS detects change it invokes the `listener` function. The `watcher` command encapsulates the whole information required for watching the given expression and delegates the execution of the command to the `listener` (the actual receiver). We can think of the `$scope` as the command `Client` and the `$digest` loop as command `Invoker`.
868+
We can think of the `watcher` object as a command. The expression of the command is being evaluated on each [`"$digest"`](https://docs.angularjs.org/api/ng/type/$rootScope.Scope#$digest) loop. Once AngularJS detects change in the expression, it invokes the `listener` function. The `watcher` command encapsulates the whole information required for watching given expression and delegates the execution of the command to the `listener` (the actual receiver). We can think of the `$scope` as the command's `Client` and the `$digest` loop as the command's `Invoker`.
869869
870870
### Controllers
871871

0 commit comments

Comments
 (0)