I'm struggling to grasp how a new entry can be added to the array of objects specified in the directory.
Currently, I am using the ngx-chips library which you can find here.
You can view the sample code I created by clicking on this link.
Here is the ngx-chip directive:
<tag-input [ngModel]="items" (onAdd)="onFilterRuleAdded($event)"></tag-input>
Essentially, whenever I add a new chip, it doesn't appear in my items
. The console logs show that the items
remain unchanged - no new entries are added.
Can anyone advise me on how I can ensure that each new entry from the tag-input
is added to the designated model items
?