
<ion-input [value]="userInput" (ionInput)="onInput($event)" type="text" placeholder="请输入标签名称"></ion-input>
<!-- <p>当前输入: {{userInput}}</p>  -->
<ion-button (click)="addTag()" expand="block" color="success">添加标签</ion-button>
<div>
@for(tag of tags;track tag;){
    <ion-chip color="primary" (click)="removeTag(tag)">
        <ion-label>{{tag}}</ion-label>
    </ion-chip>
}
</div>