请任何人告诉我如何在 ngx-chips 的 Tab 和 Spacebar 事件上动态添加标签。

使用separatorKeyCodes (number[]) 或separatorKeys (string[])
<div class="force-to-the-bottom">
<tag-input [ngModel]="['hardocoded-item']" [separatorKeyCodes]="[32,9]">
<tag-input-dropdown
[autocompleteItems]="items"
[showDropdownIfEmpty]="true"
[dynamicUpdate]="false">
</tag-input-dropdown>