Skip to content

Commit

Permalink
docs: fix typos in several guides
Browse files Browse the repository at this point in the history
  • Loading branch information
bampakoa committed Jun 22, 2022
1 parent 2512f65 commit 00dcde1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion aio/content/guide/change-detection-skipping-subtrees.md
Expand Up @@ -11,7 +11,7 @@ If you are confident that a part of the application is not affected by a state c

OnPush change detection instructs Angular to run change detection for a component subtree **only** when:
* The root component of the subtree receives new inputs as the result of a template binding. Angular compares the current and past value of the input with `==`
* Angular handles an event _(e.g. using event binding, output binding, or `@HostListener`)_ in the subtree's root component or any of its children wether they are using OnPush change detection or not.
* Angular handles an event _(e.g. using event binding, output binding, or `@HostListener`)_ in the subtree's root component or any of its children whether they are using OnPush change detection or not.

You can set the change detection strategy of a component to `OnPush` in the `@Component` decorator:

Expand Down
4 changes: 2 additions & 2 deletions aio/content/guide/interpolation.md
Expand Up @@ -10,15 +10,15 @@

Interpolation refers to embedding expressions into marked up text. By default, interpolation uses the double curly braces `{{` and `}}` as delimiters.

To illustrate how interpolation works, consider an Angular component that contains a currentCustomer variable:
To illustrate how interpolation works, consider an Angular component that contains a `currentCustomer` variable:

<code-example path="interpolation/src/app/app.component.ts" region="customer"></code-example>

Use interpolation to display the value of this variable in the corresponding component template:

<code-example path="interpolation/src/app/app.component.html" region="interpolation-example1"></code-example>

Angular replaces currentCustomer with the string value of the corresponding component property. In this case, the value is `Maria`.
Angular replaces `currentCustomer` with the string value of the corresponding component property. In this case, the value is `Maria`.

In the following example, Angular evaluates the `title` and `itemImageUrl` properties to display some title text and an image.

Expand Down
4 changes: 2 additions & 2 deletions aio/content/guide/template-typecheck.md
Expand Up @@ -348,13 +348,13 @@ Care should be taken that if an `ngAcceptInputType_` override is present for a g
Disable checking of a binding expression by surrounding the expression in a call to the [`$any()` cast pseudo-function](guide/template-expression-operators).
The compiler treats it as a cast to the `any` type just like in TypeScript when a `<any>` or `as any` cast is used.

In the following example, casting `person` to the `any` type suppresses the error `Property addresss does not exist`.
In the following example, casting `person` to the `any` type suppresses the error `Property address does not exist`.

<code-example format="typescript" language="typescript">

&commat;Component({
selector: 'my-component',
template: '{{&dollar;any(person).addresss.street}}'
template: '{{&dollar;any(person).address.street}}'
})
class MyComponent {
person?: Person;
Expand Down
2 changes: 1 addition & 1 deletion aio/content/guide/upgrade.md
Expand Up @@ -364,7 +364,7 @@ The result is an AngularJS *directive*, which you can then register in the Angul
<div class="alert is-helpful">

By default, Angular change detection will also run on the component for everyAngularJS `$digest` cycle.
If you want to only have change detection run when the inputs change, you can set `propagateDigest` to `false` when calling`downgradeComponent()`.
If you want to only have change detection run when the inputs change, you can set `propagateDigest` to `false` when calling `downgradeComponent()`.

</div>

Expand Down

0 comments on commit 00dcde1

Please sign in to comment.