{"action":"created","issue":{"url":"https://api.github.com/repos/mbenford/ngTagsInput/issues/504","labels_url":"https://api.github.com/repos/mbenford/ngTagsInput/issues/504/labels{/name}","comments_url":"https://api.github.com/repos/mbenford/ngTagsInput/issues/504/comments","events_url":"https://api.github.com/repos/mbenford/ngTagsInput/issues/504/events","html_url":"https://github.com/mbenford/ngTagsInput/issues/504","id":97458868,"number":504,"title":"Store only id in model, pull name from autocomplete source","user":{"login":"gildebrand","id":2266587,"avatar_url":"https://avatars.githubusercontent.com/u/2266587?v=3","gravatar_id":"","url":"https://api.github.com/users/gildebrand","html_url":"https://github.com/gildebrand","followers_url":"https://api.github.com/users/gildebrand/followers","following_url":"https://api.github.com/users/gildebrand/following{/other_user}","gists_url":"https://api.github.com/users/gildebrand/gists{/gist_id}","starred_url":"https://api.github.com/users/gildebrand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gildebrand/subscriptions","organizations_url":"https://api.github.com/users/gildebrand/orgs","repos_url":"https://api.github.com/users/gildebrand/repos","events_url":"https://api.github.com/users/gildebrand/events{/privacy}","received_events_url":"https://api.github.com/users/gildebrand/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mbenford/ngTagsInput/labels/status:%20replied","name":"status: replied","color":"9A2EFE"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-27T13:05:55Z","updated_at":"2015-09-28T14:24:32Z","closed_at":null,"body":"I have an autocomplete source that looks like this `[{id: 1, name: 'Tomatoes', id: 2, name: 'Bananas'}]`.\r\nRight now when I choose an element from the autocomplete list, the entire object with *both* id and name get added to the model of tags-input. However, I would like to only store the id in the model of tags-input, and make tags-input pull the name from the autocomplete source. Is this possible somehow?"},"comment":{"url":"https://api.github.com/repos/mbenford/ngTagsInput/issues/comments/143758311","html_url":"https://github.com/mbenford/ngTagsInput/issues/504#issuecomment-143758311","issue_url":"https://api.github.com/repos/mbenford/ngTagsInput/issues/504","id":143758311,"user":{"login":"jacquesdancona","id":3752171,"avatar_url":"https://avatars.githubusercontent.com/u/3752171?v=3","gravatar_id":"","url":"https://api.github.com/users/jacquesdancona","html_url":"https://github.com/jacquesdancona","followers_url":"https://api.github.com/users/jacquesdancona/followers","following_url":"https://api.github.com/users/jacquesdancona/following{/other_user}","gists_url":"https://api.github.com/users/jacquesdancona/gists{/gist_id}","starred_url":"https://api.github.com/users/jacquesdancona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacquesdancona/subscriptions","organizations_url":"https://api.github.com/users/jacquesdancona/orgs","repos_url":"https://api.github.com/users/jacquesdancona/repos","events_url":"https://api.github.com/users/jacquesdancona/events{/privacy}","received_events_url":"https://api.github.com/users/jacquesdancona/received_events","type":"User","site_admin":false},"created_at":"2015-09-28T14:24:32Z","updated_at":"2015-09-28T14:24:32Z","body":"@mbenford I'll post a plunkr today or tomorrow. "}}