From e81ad3a1bceed447e4d4c60ae548aa97415859b2 Mon Sep 17 00:00:00 2001 From: Aristeidis Bampakos Date: Sat, 21 Mar 2020 18:58:42 +0200 Subject: [PATCH] docs: Add asterisk info in template syntax guide (#36176) Add helpful alert for asterisk syntax in the `ngFor` section of template syntax guide PR Close #36176 --- aio/content/guide/template-syntax.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/aio/content/guide/template-syntax.md b/aio/content/guide/template-syntax.md index f24bf54e9a..71a20f730c 100644 --- a/aio/content/guide/template-syntax.md +++ b/aio/content/guide/template-syntax.md @@ -1600,6 +1600,14 @@ The following example shows `NgFor` applied to a simple `
`. (Don't forget t +
+ +Don't forget the asterisk (`*`) in front of `ngFor`. For more information +on the asterisk, see the [asterisk (*) prefix](guide/structural-directives#the-asterisk--prefix) section of +[Structural Directives](guide/structural-directives). + +
+ You can also apply an `NgFor` to a component element, as in the following example.