When i try to clear the model , it works first time but then it just doesn't clear the tags. HTML
<tag-input theme='bootstrap' id="test" [ngModel]="tagsSelected" [onlyFromAutocomplete]="true" [clearOnBlur]="true" [maxItems]= maxProductModels (onAdd)="onModelAdded($event)" (onRemove)="onModelRemoved($event)">
<tag-input-dropdown [showDropdownIfEmpty]="true" placeholder=""
[autocompleteItems]="sampleData">
</tag-input-dropdown>
</tag-input>
In the code behind , i am trying to clear the model in my typescript file this.tagsSelected = [];
This works for the first time but later i doesn't seem to be working
Not sure how you are clearing your tagsSelected, but first I would suggest to make tagsSelect 2way binding
[(ngModel)]="tagsSelected"Component: