From 2cacab92e69b8bb4d59b0ebca76457ebc8d7e0f8 Mon Sep 17 00:00:00 2001 From: Judy Bogart Date: Mon, 23 Dec 2019 13:06:42 -0800 Subject: [PATCH] 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 --- aio/content/guide/aot-compiler.md | 1 - aio/content/guide/structural-directives.md | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/aio/content/guide/aot-compiler.md b/aio/content/guide/aot-compiler.md index 246e6842c0..ee55630756 100644 --- a/aio/content/guide/aot-compiler.md +++ b/aio/content/guide/aot-compiler.md @@ -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. diff --git a/aio/content/guide/structural-directives.md b/aio/content/guide/structural-directives.md index 5a269d4bb7..6f44eb3891 100644 --- a/aio/content/guide/structural-directives.md +++ b/aio/content/guide/structural-directives.md @@ -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. -
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 [``](guide/structural-directives#ngcontainer) as a grouping element when there is no suitable host element.