docs(common): update ngFor docs to new as syntax (#15166)

This commit is contained in:
Josep Sayol
2017-03-23 01:18:22 +01:00
committed by Igor Minar
parent 26f6bd4d3b
commit 9319b5f329
3 changed files with 5 additions and 6 deletions

View File

@ -34,7 +34,7 @@ export const FormErrorExamples = {
formArrayName: `
<div [formGroup]="myGroup">
<div formArrayName="cities">
<div *ngFor="let city of cityArray.controls; let i=index">
<div *ngFor="let city of cityArray.controls; index as i">
<input [formControlName]="i">
</div>
</div>
@ -61,4 +61,3 @@ export const FormErrorExamples = {
</div>
`
};