I am accessing my data with
$http.get('/games').success(function(response){
console.log("I got the data i requested");
$scope.games = response;
})
then using
<tr ng-repeat="game in games | filter:query">
<td><a href="#/game/{{game._id}}">{{game.title}}</a></td>
<td>{{game.genre}}</td>
<td>{{game.developer}}</td>
to display the all the data in a list. If I now require to display a specific game using its ID how do I go about doing this? I have tried $http.get with params with no luck. how can I filter or query the $scope.games or retrieve specific data inside /games with $http.get.
Thank you
id?