0
aa $ウォッチコールのスコープ変数を更新したいときにこれを更新すると、更新されたng-repeatアップデート。
ここにはすべてのコードがあります。あなたも$ウォッチを必要としない。このケースでは https://plnkr.co/edit/LB8CCvtEZG76D8plMgu6?p=preview
link: function($scope, $el,$attrs) {
$scope.$watch(function(scope){
return PlayerlistS.getList();
},
function (newVal, oldVal) {
console.log("CHANGED");
/*I want this to contain the new array and then the ng-repeat must update with the new values.*/
$scope.players = newVal;
}, true);
}