I have two (or perhaps more) input fields that are generated when I click on button. Currently, when I start to type something in any filed, it will also fill in other fields with that ngModel.
What i need is to make every row for it self so that when i click other button, it will get all input values and push them in array by rows so json should look something like this:
[{"name":"aaa", "data":"111"},{"name":"bbb", "data":"222"},{"name":"ccc", "data":"333"}]
Plunker is here: plunker
this.properties.push({...this.property})