我测试了ngTagsInput并且我已经正确设置了它,但是ngTagsinput模块在ng-repeat中没有工作,这有什么结果吗?谢谢。 https://jsfiddle.net/wmsoor18/ 示例代码;
<div ng-app="myApp" ng-controller="myCtrl">
{{tags}}
<div ng-repeat="sub in ['sub1','sub2']">
<tags-input ng-model="tags[sub]"></tags-input>
</div>
<div>
angular
.module('myApp', ['ngTagsInput'])
.controller('myCtrl', function($scope) {
//$scope.tags = {};
});
这个没有ng-repeat工作; http://jsfiddle.net/r78ohcf0/1/