Gbuomprisco / ngx-chips

Tag Input component for Angular
MIT License
899 stars 361 forks source link

Is there any way that I can set value from tagModel used in ngx-chips in angular? #1004

Closed krunalm94 closed 2 years ago

krunalm94 commented 2 years ago

HTML Code: <tag-input class="martop20 tag-adder width100 heightauto" [onAdding]="onAdding" (onAdd)="addInternalDomain($event)" type="text"

TS code:

addInternalDomain(tagText: TagModel) {
 console.log(tagText.value)
}

Getting error : Property 'value' does not exist on type 'TagModel'. Property 'value' does not exist on type 'string'.

Gbuomprisco commented 2 years ago

Please complete the template. If possible, add a reproduction