I want to get ngfor value from ngmodel

I’m trying to use ngFor to bind object value from an object list/array to an Ion-Input field;
this is my
ngfor html line

<ion-input item-left type=“number” [ngModel]=“item.number”>
Now i want to get ngModel value into my ts while user click on submit button.
how can i do that.
Please help me anyone.
Thanks

Looks like you’re way off…

Take your time and read this. This will explain everything you need.

I would suggest to start learning with template driven forms (which use ngModel), and then move on to (model driven) reative forms.

1 Like