rosslavery / angular2-tag-input

Tag input component for Angular 2
45 stars 42 forks source link

Pass an object to the autocomplete instead of strings #14

Open anrepppp opened 7 years ago

anrepppp commented 7 years ago

Hi, I was wrapping my head around this tags-input plugins for a while and i am wondering is this plugin has a support for the passing an array of objects inside of autocompleteItems and specify a property to display the name.

Ex: [autocompleteItems]="[{name: 'Item1', id: 1}, {name: 'Item2', id: 2}}" [autocompleteDisplayProperty]="'name'" [autocomplete]="true"

Referring: https://github.com/Gbuomprisco/ng2-tag-input/issues/68

SteveDowsett commented 7 years ago

This would be a great addition, i need this also!

Jayesh-Linkwok commented 6 years ago

This is great idea. I was also wondering about this feature!