I have an array of items like this
[{
name: "name213",
value: "value1"
}, {
name: "name122",
value: "value2"
}]
I want to ng-model my input on one object of this array but I don't know this position. I just know his name.
What is the best way to do this? During the initialisation of the array, save the object in var? Bind the input on another object and when I want to save it, merge it with the array?
ng-repeat?