Hi,
try the changes below
> <div *ngFor="let input of inputs.metadatas">
> <mat-form-field class="mat_form_width">
> <input matInput placeholder="{{input | titlecase}}" [(ngModel)]
> ="inputs.metadatas.indexOf(input)"
>
name="'name_' + inputs.metadatas.indexOf(input).toString()">
> </mat-form-field>
> </div>
>
> I'm not sure it works, and is not the right way, you should use a
> FormGroup (no ngModel) and in the html bind with formControlName attribute.
>
You can create a Class like {controlName: string, controlValue: string,
controlPlaceHolder: string} and use an array oh this to build dynamically
the html tags
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.