Good morning,
I have two objects. In one of them I have only the id. In the other several fields, the id of this first object is the name. I need to somehow sweep the object 2 find the same id that is in the first object to know the name of it, since I only have the id.
//objeto 1
$rootScope.obj1 = result.data.value;
//objeto 2
obj2 = result.data.value;
Example of how it is in the browser console:
//obj1
Object {id: 2, createdAt: "2017-12-22T14:01:35.225", updatedAt: "2017-12-22T14:01:35.225", name: "abc", initialDate: "2017-12-22"…}
//obj2
Object {......id: 2}
Thanks in advance for your collaboration