I have a string array of emails as below:
{
"streetName": "street 1",
"emails" : [
"[email protected]",
"[email protected]"
]
}
How would I render this in reactive form input fields?
I tried this but not working:
<div class="row mt-4" formArrayName="emails">
<div class="col" *ngFor="let email in myform.get('emails')['controls']; let emailIndex=index">
<input type="text" placeholder="" formControlName="emailIndex"/>
</div>
</div>