I need help figuring out how to incorporate my variables into ng-repeat, as shown in the examples below.
controller.js
$scope.firstParams = $stateParams.firstId;
template.html
<span style="margin-left:3px;" ng-repeat="list in user.userlists.{{firstParams}}"></span>
The ng-repeat example is just for demonstration purposes
Essentially, I want my ng-repeat to dynamically fetch the parameters through $scope.firstParams like this: ng-repeat="list in user.userlists.gameboy" if the parameter is "gameboy".
I've experimented with various filter:Options without much success.