【发布时间】:2019-10-02 23:15:03
【问题描述】:
我想找到一种方法,通过代码清除 ui-select 的选择。
例如我有以下代码
<ui-select ng-model="selectedCustomerCode" ng-if="CustomerIds.length>1" on-select="CustomerCodeFiltersOnSelectCallback($item, $model)" theme="bootstrap">
<ui-select-match class="ui-select-match" allow-clear="true" placeholder="Επιλογή κωδικού πελάτη...">{{$select.selected.CCode}}</ui-select-match>
<ui-select-choices class="ui-select-choices" repeat="customer in CustomerIds | propsFilter: {CCode: $select.search}">
<div ng-bind-html="customer.CCode | highlight: $select.search"></div>
</ui-select-choices>
</ui-select>
我想点击一个清除按钮并清除一些输入,包括 ui-select。 清除ui-select的代码是什么?
【问题讨论】: