Ngx-chips: Adding tags to a string array

Created on 17 Mar 2017  路  4Comments  路  Source: Gbuomprisco/ngx-chips

Hi, I'm using a string array as a model.
However, if I add new tags, the new array items end up being { display, value } pairs instead of new strings in the array.
Not sure if it's a bug or if I have an option missing.
Thanks,
Martin

Most helpful comment

Hi @DevInstinct,

Are you using the option [modelAsStrings]?

All 4 comments

Hi @DevInstinct,

Are you using the option [modelAsStrings]?

I have the same bug, Who knows?

[modelAsStrings]="true"

Hi,
I have been used [modelAsStrings]="true" in tag-input tag &[autocompleteItems]="['qwerty','mani']" in tag-input-dropdown tag. if value is adding from autocompletitems, it is storing as array of objects([{display:"qwerty",value:'qwerty'}]). if value is new , it is storing as array of string(['qwerty']). both scenorios i need to add as array of strings. how to handle it?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

manilsson picture manilsson  路  4Comments

AVykhrystyuk picture AVykhrystyuk  路  3Comments

Gbuomprisco picture Gbuomprisco  路  4Comments

HDaghash picture HDaghash  路  4Comments

EnochGao picture EnochGao  路  4Comments