I have the following JSON which will be set to $scope.episodes;
"the_numbers": [{
"episodeID": 16503,
"episodeNumber": 183
},
{
"episodeID": 16504,
"episodeNumber": 184
}]
From this JSON I want to create a filter in angularjs to get the following output from $scope.episodes: 183, 184
.
What has to be done to achieve that?
$scope.episodes = theNumbers.map(function(x){ return x.episodeNumber});