我的控制器:
$scope.taglist = [{"name":"Fruit_Type","value":"0"},
{"name":"Leaves_Arrangment","value":"?"},
{"name":"Leaves_Margin","value":"?"},
{"name":"Leaves_Type","value":"?"}];
这是我的表格
<form id="filter_form" onchange="angular.element(this).scope().fileNameChanged(this)" novalidate class="simple-form">
<div ng-repeat="(key, value) in tags.tags.objects | groupBy:'category.name'">
<div class="item item-divider">
{{ key }}
</div>
<label class="item item-input item-select" ng-repeat="(item_key, item) in value | groupBy:'subcategory.name'">
<div class="input-label">
{{ item_key }}
</div>
<select name="{{ key }}_{{ item_key }}" ng-model="taglist" ng-options="option.description for option in item">
<option ng-value="">------</option>
</select>
</label>
</div>
</form>
Currently selected: {{ taglist }}
目前选择的节目:
Currently selected: [{"name":"Fruit_Type","value":"0"},
{"name":"Leaves_Arrangment","value":"?"},
{"name":"Leaves_Margin","value":"?"},
{"name":"Leaves_Type","value":"?"}]
为什么不根据$ scope.taglist设置选项?我认为这应该发生的印象。 所以Fruit Type应该选择0,其余没有。
我只是试图让表格处于状态,因为标签列表位于