I want to display some reviews that are related to subjects inside a data array, $scope.allSubjects.  However... the data array will be filtered out in the client to only show like 10 things, out of 1000a+ things. In my api, each subject has a lot of reviews. How can I only get the reviews associated with the data array's currently filtered items? Each subject has an id, and I plan to use that to get reviews that are related to that subjects id through getInitialReviews and attach them to $scope.allSubjects. Then, I would use a nested ngRepeat to show all the reviews within that subject. My first approach was to just use a for loop to itereate through the entire $scope.allSubjects to get back the id so I could get review data from my API, but I feel that would be too much load for the client  if there are 1000+ subjects. So... is this even a good approach for what I'm trying to do?
js lint pseudo code: https://jsfiddle.net/zw6zpxou/