I'm more or less new in AngularJS. My question is simple but I'm not sure which is the best way.
Let's say I have a list of persons (name, surname, dob, ...) in a controller (array) and view (html table) to display this array of persons.
In every line of this html table there will be and edit button to edit data of a single person.
For this there will be another controller (single person obj and view - a html form.
In one way I would like to transfer data of a single person from first controller of array of persons to second controller of a single person
and vice versa - transferring edited single person data from second controller back to the first controller thus updating one record in array of persons.
I know I can do this with some service in the middle, but is there some more elegant way?