Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 03ebecd

Browse files
mernenmhevery
authored andcommitted
docs($rootScope): fix typos and minor wording tweaks on $watch
1 parent 62bb728 commit 03ebecd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ng/rootScope.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -221,18 +221,18 @@ function $RootScopeProvider(){
221221
* reruns when it detects changes the `watchExpression` can execute multiple times per
222222
* {@link ng.$rootScope.Scope#$digest $digest()} and should be idempotent.)
223223
* - The `listener` is called only when the value from the current `watchExpression` and the
224-
* previous call to `watchExpression` are not equal (with the exception of the initial run
224+
* previous call to `watchExpression` are not equal (with the exception of the initial run,
225225
* see below). The inequality is determined according to
226-
* {@link angular.equals} function. To save the value of the object for later comparison
226+
* {@link angular.equals} function. To save the value of the object for later comparison, the
227227
* {@link angular.copy} function is used. It also means that watching complex options will
228228
* have adverse memory and performance implications.
229229
* - The watch `listener` may change the model, which may trigger other `listener`s to fire. This
230230
* is achieved by rerunning the watchers until no changes are detected. The rerun iteration
231-
* limit is 100 to prevent infinity loop deadlock.
231+
* limit is 100 to prevent an infinite loop deadlock.
232232
*
233233
*
234234
* If you want to be notified whenever {@link ng.$rootScope.Scope#$digest $digest} is called,
235-
* you can register an `watchExpression` function with no `listener`. (Since `watchExpression`,
235+
* you can register a `watchExpression` function with no `listener`. (Since `watchExpression`
236236
* can execute multiple times per {@link ng.$rootScope.Scope#$digest $digest} cycle when a change is
237237
* detected, be prepared for multiple calls to your listener.)
238238
*

0 commit comments

Comments
 (0)