angularjs ng-repeat with filter and track by $index not working
问题 im trying to put some videos, which name is located in this json file, inside a div, this is the json file: { "videos": { "name": [ "dfg.webm", "fdgh.mp4" ] } } this is the script: (function(){ var app=angular.module("index",[]); var videoUrl=function(name){ alert("asd"); return "./videos/"+name; }; app.filter('videoUrl',function(){alert("asd");return videoUrl;}); var mainController=function($scope,$http){ var videosSuccess=function(response){ $scope.videosJSON=response.data; }; var