ng-init in ng-repeat shows only the last item info
I want to loop through items like this: <section class="col-sm-4" data-ng-controller="PredictionsController" data-ng-init="findMyPredictions()"> <div class="games"> <div class="game-row" ng-repeat="prediction in predictions" ng-init="getGame(prediction.game_id)"> <a class="button primary alt block" href="#!/predictions/{{prediction._id}}"> <span class="home flag {{gameInfo.team1_key}}"></span> <span class="middle"> <span class="date">{{gameInfo.play_at | date: 'd.MM HH:mm'}}</span> <span class="versus">{{gameInfo.team1_title}} - {{gameInfo.team2_title}}</span> </span> <span class="away flag {