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

Commit b63fd11

Browse files
trusktrbtford
authored andcommitted
docs(guide/scope): small fixes
1 parent c369563 commit b63fd11

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/content/guide/scope.ngdoc

+6-6
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ the `$digest` phase. This delay is desirable, since it coalesces multiple model
268268

269269
4. **Mutation observation**
270270

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
272272
$digest} cycle on the root scope, which then propagates throughout all child scopes. During
273273
the `$digest` cycle, all `$watch`ed expressions or functions are checked for model mutation
274274
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
350350

351351
Angular modifies the normal JavaScript flow by providing its own event processing loop. This
352352
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
355355
mind that in most places (controllers, services) $apply has already been called for you by the
356356
directive which is handling the event. An explicit call to $apply is needed only when
357357
implementing custom event callbacks, or when working with third-party library callbacks.
358358

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.
362362
2. Angular executes the `stimulusFn()`, which typically modifies application state.
363363
3. Angular enters the {@link ng.$rootScope.Scope#$digest $digest} loop. The
364364
loop is made up of two smaller loops which process {@link

0 commit comments

Comments
 (0)