各要素に異なるタグがある場合、ng-repeat ループ内で ng-tags-input を使用するにはどうすればよいですか? ng-model を動的に設定するにはどうすればよいですか?
<div ng-controller="myController">
<ul>
<li ng-repeat="file in files">
{{file}} <tags-input ng-model="tags"></tags-input>
</li>
</ul>
</div>
app.controller('myController', function ($scope) {
$scope.tags = ['tagA','tagB'];
// $scope.tags['file1'] = ['tagA','tagB'];
// $scope.tags['file2'] = ['tagC','tagD'];
});
前もって感謝します!