Hello Team,

    I'm creating dynamic fields in angular Template- Driven form. But i'm 
unable to make Input reference variable name dynamic. 

 What i'm doing is....

<input matInput
       *#refVar{{i}} = ngModel*   
       [name]="iterateField['name']"
       [placeholder]="iterateField['placeholder']"
       [(ngModel)]="formModelValue[iterateField['ngModelName']] = 
iterateField['ngModelValue']"
       [type]="iterateField['type']"
       [ngModelOptions]="{standalone: true}">


 Where ' i ' is the index value of ngFor.

Please, suggest me how can i make ref. variable name* unique for each 
fields*.


-- 
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.

Reply via email to