I add a ng-click inside a ng-repeat, i want to get the single item in the loop, it work well but only once.
ng-repeat="item in Playlist.item" ng-click="getSingleItem(item)"
in my controller
$scope.getSingleItem = function (item) { console.log(item); }
If i click i get the item object in my console log, this click is a href and send me to the next page with ng-route. But if i go back and click the same link or another link, it won't work.
it fire only once.
UPDATE! i just find out that with my own href directive and the ng-click it work only once, but if i just add a $timeout in my own directive it will work.