我不想用[clearable]
inng-select
来泄露我的空间。而不是[clearable]
我只想使用[clearOnBackspace]
,但是当我写 它[clearable] = "false"
时[clearOnBackspace] = "true"
它不起作用。
enter code here
<ng-select [items]="cities"
bindLabel="name"
placeholder="Select city"
[(ngModel)]="selectedCity"
[clearable]="false"
[clearOnBackspace] = "true"
[excludeGroupsFromDefaultSelection] = "true">
</ng-select>