{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/ui-select/issues/934","labels_url":"https://api.github.com/repos/angular-ui/ui-select/issues/934/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/ui-select/issues/934/comments","events_url":"https://api.github.com/repos/angular-ui/ui-select/issues/934/events","html_url":"https://github.com/angular-ui/ui-select/issues/934","id":77604710,"number":934,"title":"Perhaps a dumb question, but I cannot find the base use case.","user":{"login":"nicklasb","id":8634663,"avatar_url":"https://avatars.githubusercontent.com/u/8634663?v=3","gravatar_id":"","url":"https://api.github.com/users/nicklasb","html_url":"https://github.com/nicklasb","followers_url":"https://api.github.com/users/nicklasb/followers","following_url":"https://api.github.com/users/nicklasb/following{/other_user}","gists_url":"https://api.github.com/users/nicklasb/gists{/gist_id}","starred_url":"https://api.github.com/users/nicklasb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicklasb/subscriptions","organizations_url":"https://api.github.com/users/nicklasb/orgs","repos_url":"https://api.github.com/users/nicklasb/repos","events_url":"https://api.github.com/users/nicklasb/events{/privacy}","received_events_url":"https://api.github.com/users/nicklasb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-18T10:43:56Z","updated_at":"2015-05-18T21:15:24Z","closed_at":null,"body":"And I have looked everywhere in the documentation and examples, or at least I think so.\r\nI have a model that is array of items:\r\n\r\n    model = [\"item1\", \"item2\", \"item3\"]\r\n\r\nThe lookup values I have are subsequently something like:\r\n\r\n    lookupValues = [\r\n      {value: \"item1\", name: \"itemName1},\r\n      {value: \"item2\", name: \"itemName2},\r\n      {value: \"item3\", name: \"itemName3}\r\n    ]\r\n\r\nI want to have a multiselect that updates the model based on the lookup value i select.\r\nTo me, that would seem like the most basic use of this component, yet all I see are examples of selecting and adding from a model with the *actual* objects, which to me basically never would be something I would do, I would always work with Id:s.\r\nFor comparison, this is the base use case for angular-strap-select.\r\n\r\nI am sure that I have missed something, or do I have to write some translation-mechanism between ui-select and the model? It would be unfortunate as it would break how the model-view relationship should work as changes in the model would not be naturally propagated to ui-select. "},"comment":{"url":"https://api.github.com/repos/angular-ui/ui-select/issues/comments/103213576","html_url":"https://github.com/angular-ui/ui-select/issues/934#issuecomment-103213576","issue_url":"https://api.github.com/repos/angular-ui/ui-select/issues/934","id":103213576,"user":{"login":"Luddinus","id":7340521,"avatar_url":"https://avatars.githubusercontent.com/u/7340521?v=3","gravatar_id":"","url":"https://api.github.com/users/Luddinus","html_url":"https://github.com/Luddinus","followers_url":"https://api.github.com/users/Luddinus/followers","following_url":"https://api.github.com/users/Luddinus/following{/other_user}","gists_url":"https://api.github.com/users/Luddinus/gists{/gist_id}","starred_url":"https://api.github.com/users/Luddinus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Luddinus/subscriptions","organizations_url":"https://api.github.com/users/Luddinus/orgs","repos_url":"https://api.github.com/users/Luddinus/repos","events_url":"https://api.github.com/users/Luddinus/events{/privacy}","received_events_url":"https://api.github.com/users/Luddinus/received_events","type":"User","site_admin":false},"created_at":"2015-05-18T21:15:24Z","updated_at":"2015-05-18T21:15:24Z","body":"@nicklasb maybe this helps: https://github.com/angular-ui/ui-select/issues/701#issuecomment-101992175"}}