ngTagsInput icon indicating copy to clipboard operation
ngTagsInput copied to clipboard

Array of strings

Open sebastiannm opened this issue 9 years ago • 11 comments
trafficstars

Hi, I worked on a feature that is very much requested.

Turning off itemIsObject (on by default for backwards compatibility) will create an array of strings instead of objects. I'm using it in production without problems.

sebastiannm avatar Jun 08 '16 21:06 sebastiannm

Excellent thanks!

mohag519 avatar Jun 09 '16 06:06 mohag519

+1 seems to solve https://github.com/mbenford/ngTagsInput/issues/666

nescalante avatar Jun 22 '16 14:06 nescalante

Any plans on when this will be merged into master? I'm working with this directive right now but I'm having to do serialization because I need an array of strings rather than an array of objects

jrdn91 avatar Sep 29 '16 14:09 jrdn91

+1

gustavodegeus avatar Nov 11 '16 15:11 gustavodegeus

+1

mjmarianetti avatar Jan 12 '17 13:01 mjmarianetti

@sebastiannm Could you make your repository public so that it might be possible to merge your changes in an own fork. So your changes would be reusable by others until the pull request will be accepted here.

repalogic avatar Mar 06 '17 20:03 repalogic

@repalogic: https://github.com/Nex9/ngTagsInput

nescalante avatar Mar 06 '17 20:03 nescalante

I have a problem where auto complete does not work when I set item-is-object to false. When typing in the tags field, I get an error in the console "array1.filter is not a function".

I fixed the error by changing: getDifference(items, tags); to getDifference(items.data || items, tags);

When item-is-object is enabled, the items.data is used when available, but that check is missing when using simple arrays.

matthew-mahony avatar Mar 21 '17 23:03 matthew-mahony

Hello.

It will be released soon in bower?

ronaldohoch avatar Apr 07 '17 17:04 ronaldohoch

Thanks @nescalante this solved my problem! Needed an array strings, not objects. I would like to know when this is merged with the original base code.

tkserver avatar Apr 14 '17 21:04 tkserver

Hi, are we any closer to getting this merged? Seems to me this is a requirement for many people. I'd prefer not to have to transform my model the entire time to hack around this problem :-/

edmedo avatar Aug 23 '17 13:08 edmedo