@@ -268,7 +268,7 @@ the `$digest` phase. This delay is desirable, since it coalesces multiple model
268
268
269
269
4. **Mutation observation**
270
270
271
- At the end `$apply`, Angular performs a {@link ng.$rootScope.Scope#$digest
271
+ At the end of `$apply`, Angular performs a {@link ng.$rootScope.Scope#$digest
272
272
$digest} cycle on the root scope, which then propagates throughout all child scopes. During
273
273
the `$digest` cycle, all `$watch`ed expressions or functions are checked for model mutation
274
274
and if a mutation is detected, the `$watch` listener is called.
@@ -350,15 +350,15 @@ The diagram and the example below describe how Angular interacts with the browse
350
350
351
351
Angular modifies the normal JavaScript flow by providing its own event processing loop. This
352
352
splits the JavaScript into classical and Angular execution context. Only operations which are
353
- applied in Angular execution context will benefit from Angular data-binding, exception handling,
354
- property watching, etc... You can also use $apply() to enter Angular execution context from JavaScript. Keep in
353
+ applied in the Angular execution context will benefit from Angular data-binding, exception handling,
354
+ property watching, etc... You can also use $apply() to enter the Angular execution context from JavaScript. Keep in
355
355
mind that in most places (controllers, services) $apply has already been called for you by the
356
356
directive which is handling the event. An explicit call to $apply is needed only when
357
357
implementing custom event callbacks, or when working with third-party library callbacks.
358
358
359
- 1. Enter Angular execution context by calling {@link guide/scope scope}`.`{@link
360
- ng.$rootScope.Scope#$apply $apply}`(stimulusFn)`. Where `stimulusFn` is
361
- the work you wish to do in Angular execution context.
359
+ 1. Enter the Angular execution context by calling {@link guide/scope scope}`.`{@link
360
+ ng.$rootScope.Scope#$apply $apply}`(stimulusFn)`, where `stimulusFn` is
361
+ the work you wish to do in the Angular execution context.
362
362
2. Angular executes the `stimulusFn()`, which typically modifies application state.
363
363
3. Angular enters the {@link ng.$rootScope.Scope#$digest $digest} loop. The
364
364
loop is made up of two smaller loops which process {@link
0 commit comments