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

@ -16,7 +16,7 @@ import {FormArray, FormControl, FormGroup} from '@angular/forms';
template: `
<form [formGroup]="form" (ngSubmit)="onSubmit()">
<div formArrayName="cities">
<div *ngFor="let city of cities.controls; let i=index">
<div *ngFor="let city of cities.controls; index as i">
<input [formControlName]="i" placeholder="City">
</div>
</div>