docs: correct typos in doc for template type guards (#37090)
correct some small typos in new feature recommendation in stuctural-directives.md and reference from aot-compiler.md PR Close #37090
This commit is contained in:
parent
0520ecb7d0
commit
2cacab92e6
|
@ -621,7 +621,6 @@ Using `*ngIf` allows the TypeScript compiler to infer that the `person` used in
|
|||
|
||||
For more information about input type narrowing, see [Input setter coercion](guide/template-typecheck#input-setter-coercion) and [Improving template type checking for custom directives](guide/structural-directives#directive-type-checks).
|
||||
|
||||
|
||||
### Non-null type assertion operator
|
||||
|
||||
Use the [non-null type assertion operator](guide/template-syntax#non-null-assertion-operator) to suppress the `Object is possibly 'undefined'` error when it is inconvenient to use `*ngIf` or when some constraint in the component ensures that the expression is always non-null when the binding expression is interpolated.
|
||||
|
|
|
@ -846,7 +846,7 @@ Use the type-guard properties to inform the template type checker of an expected
|
|||
|
||||
This section provides example of both kinds of type-guard property.
|
||||
|
||||
<div class="alert is-helpful>
|
||||
<div class="alert is-helpful">
|
||||
|
||||
For more information, see [Template type checking guide](guide/template-typecheck "Template type-checking guide").
|
||||
|
||||
|
@ -962,7 +962,7 @@ Here is the source from the `src/app/` folder.
|
|||
|
||||
|
||||
|
||||
You learned
|
||||
You learned:
|
||||
|
||||
* that structural directives manipulate HTML layout.
|
||||
* to use [`<ng-container>`](guide/structural-directives#ngcontainer) as a grouping element when there is no suitable host element.
|
||||
|
|
Loading…
Reference in New Issue