Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support dupplicate keys #1

Open
junajan opened this issue Nov 25, 2014 · 0 comments
Open

Support dupplicate keys #1

junajan opened this issue Nov 25, 2014 · 0 comments

Comments

@junajan
Copy link

junajan commented Nov 25, 2014

I wanted to use ng-tags-input module together with google search places, where I would type some city and google would fill all info about place to tag item.

In tag list there would be items like: Prague, CZ; Athens, GR .. and etc.

But when I add another place in Prague, CZ, it will add info to array but angular ng-repeat will get stuck because of "Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys" error.

Which can be fixed by replacing "track by track(tag)" with "track by $index" in this file:
https://github.com/mbenford/ngTagsInput-bower/blob/master/ng-tags-input.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant