Send new item to Json in Angular

I’m new in Angular, and now I’m working on array, and json. I have a table with these fields: product, lot, input1, input2. You can clone a line, and you can add a new line.

The first
is empty and fill with a sub-array of the first selected item. So, you
choose a Product, and then you have - in the second selection - the list
of the Lots of that Product.

And for now, all works fine. But I have a problem. Because now, what I
want to do, is that for each row you can add a Lot formed by a “number”
and by “id” that user write in the input field under the Select Lot.
And I wanted that the script add the new Lot in the json data, and then
update the select adding the lot.

This is the full code: http://plnkr.co/edit/y9XDz9oF0vI7Dw08i4vH?p=preview

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.