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

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

}