<ion-input [value]="userInputText" placeholder="请输入标签：" type="text" (ionInput)="onUserInput($event)"></ion-input>
<p>你当前输入的值是：{{userInputText}}</p>
<ion-button (click)="addTag()">添加标签</ion-button>

@for (tag of tags;track tag;) {
    <ion-chip>{{tag}}<span (click)="deleteTag(tag)">X</span></ion-chip>
}