I've successfully grouped child objects with parent objects using a concise example available on Plunker
The methodology of nesting objects in one array makes perfect sense to me. Now, I'm interested in utilizing two distinct scope arrays for demonstration purposes like the Company(parent) - workers(child) scenario:
$scope.parent = [{id: 1, name: "Nike", productOf:"USA"}]
$scope.child = [{ id:1, firstName:"John", lastName:"Doe" },
{ id:2, firstName:"John2", lastName:"Doe2" },
{ id:3, firstName:"John3", lastName:"Doe3" }
]
Although I've put in my best effort and researched extensively, I haven't been able to accomplish this task independently. I have yet to come across relevant information that addresses my specific requirements.
If anyone could provide me with some guidance or point me towards a helpful article, I would greatly appreciate it. Thank you!