Revert "docs(forms): use a number as input value for formControlName (#30606)" (#32088)

This reverts commit bed680cff8.

PR Close #32088
This commit is contained in:
Kara Erickson 2019-08-09 17:21:38 -07:00
parent 9a37e827e2
commit 753080133b
1 changed files with 1 additions and 1 deletions

View File

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