0
可否请你告诉我如何在UI选择中设置默认值。 这里是我的代码 http://plnkr.co/edit/tCrEM4oC9iMSYZffbEAX?p=preview 我想“阿德里安”应该选择作为默认.could请你告诉我如何设置阿德里安年龄典范(21)的默认值?如何选择ui select的默认值?
<ui-select tagging tagging-label="new tag" multiple ng-model="model.multipleDemo" theme="select2" ng-disabled="disabled" style="width: 300px;">
<ui-select-match placeholder="Select colors...">{{$item.name}}</ui-select-match>
<ui-select-choices repeat="color.age as color in people | filter:$select.search">
{{color.name}}
</ui-select-choices>
</ui-select>
<p>Selected: {{model.multipleDemo}}</p>