I'm currently working on developing a dynamic form that adjusts based on the input type from a JSON file. However, I am facing an issue with binding the value of ng-Model within a loop.
<form #myForm='ngForm' (ngSubmit)="onSubmit(myForm)">
<ng-template ngFor let-item [ngForOf]="formssdata">
<ion-item *ngIf='item.inputType == "text"'>
<ion-label floating>{{item.label}}</ion-label>
<ion-input type="text" required [(ngModel)]= "{{item.key}}" name="{{item.key}}"></ion-input>
</ion-item>
</ng-template>
</form>
While the binding of "name" in the input field is successful, I am encountering an error when trying to bind {{item.key}} to Ng-model.