我正在关注这个非常基本的示例https://stackblitz.com/edit/ngx-chips-example
组件.ts
export interface AutoCompleteModel {
value: any;
display: string;
}
public items = [
{display: 'Pizza', value: 1},
{display: 'Pasta', value: 2},
{display: 'Parmesan', value: 3},
];
组件.html
<tag-input [ngModel]="['@items']" >
<tag-input-dropdown [autocompleteItems]="items" [showDropdownIfEmpty]="true" [dynamicUpdate]="false"></tag-input-dropdown>
</tag-input>
但是,我的结果是这样的
值与显示一起显示。如何去除价值?