Closed MichaelArnoldOwens closed 7 years ago
No predetermined schema is required. You can tell ngTagsInput to use any property of your model by setting either keyProperty
or displayProperty
, depending on what you want to do. Take a look at the docs and at the demos page.
I did look at the docs and the demo, which is why I was confused and surprised to find that it worked differently than what was demoed.
Before changing all the keys to 'text', I was getting duplicate error key: undefined logs in my console.
" You can tell ngTagsInput to use any property of your model " - if it's not nested.
I wish to set displayProperty to displayProperty="tag.name"
Tagging:
This issue was selected to be spring-cleaned by a script. More information can be found here.
If anyone thinks this was a mistake and this issue should be reopened, please leave a message below explaining why. Before doing so, please consider reading the CONTRIBUTING file.
Spent a couple hours just figuring out that:
Is not acceptable because the format must be in
[{"text":value}, ...]
ngTagsInput should be more robust in that if I specify a key to be source for suggestions, then it shouldn't default setting the key to undefined.