Greetings
We have about the following:
A model of, say, goods:
this.trade_model = [ { name: 'name1', title: 'title_one', cost: 1000, ... }, ... ]; Fields such as name , title , etc.. can be set.
On click we show <input ng-model="needed_object.name"> , which rules the name object of our model.
How to give a person a new value, then after pressing the "OK" button, apply the value to the model field, or after pressing the "CANCEL" button, reset the entered values.
I apologize if it is not clear explained :)