docs: missing item variable in structural directives example (#35213)
PR Close #34762 PR Close #35213
This commit is contained in:
parent
54c3a5da3f
commit
843b3a2197
|
@ -297,7 +297,7 @@ describes additional `NgFor` directive properties and context properties.
|
||||||
|
|
||||||
These microsyntax mechanisms are also available to you when you write your own structural directives.
|
These microsyntax mechanisms are also available to you when you write your own structural directives.
|
||||||
For example, microsyntax in Angular allows you to write `<div *ngFor="let item of items">{{item}}</div>`
|
For example, microsyntax in Angular allows you to write `<div *ngFor="let item of items">{{item}}</div>`
|
||||||
instead of `<ng-template ngFor [ngForOf]="items"><div>{{item}}</div></ng-template>`.
|
instead of `<ng-template ngFor let-item [ngForOf]="items"><div>{{item}}</div></ng-template>`.
|
||||||
The following sections provide detailed information on constraints, grammar,
|
The following sections provide detailed information on constraints, grammar,
|
||||||
and translation of microsyntax.
|
and translation of microsyntax.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue