I'm trying to upload some videos to a site and it happens to me that if I load one works perfect, but if they are more, you can not play any. I suspect that what happens is that I have the same ng-click to play all the videos, then they must be treading ... Is there a way to use a $ index speci without ng-repeat or generate that number dynamically to pass it from parameter? this is my code Thanks!
html
<div id="video-section" class="wide-rail-item player-section-video" ng-if="ready">
<div>
<player content="content"></player>
</div>
</div>
directive.js
$scope.click = function(){
var showPlayer = function() {
angular.element("#image-section").remove();
$scope.ready = true;
};
}