{"action":"created","issue":{"url":"https://api.github.com/repos/amitava82/angular-multiselect/issues/26","repository_url":"https://api.github.com/repos/amitava82/angular-multiselect","labels_url":"https://api.github.com/repos/amitava82/angular-multiselect/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/amitava82/angular-multiselect/issues/26/comments","events_url":"https://api.github.com/repos/amitava82/angular-multiselect/issues/26/events","html_url":"https://github.com/amitava82/angular-multiselect/issues/26","id":30836363,"number":26,"title":"Can I use different option properties as names and values?","user":{"login":"airandfingers","id":1088051,"avatar_url":"https://avatars.githubusercontent.com/u/1088051?v=3","gravatar_id":"","url":"https://api.github.com/users/airandfingers","html_url":"https://github.com/airandfingers","followers_url":"https://api.github.com/users/airandfingers/followers","following_url":"https://api.github.com/users/airandfingers/following{/other_user}","gists_url":"https://api.github.com/users/airandfingers/gists{/gist_id}","starred_url":"https://api.github.com/users/airandfingers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/airandfingers/subscriptions","organizations_url":"https://api.github.com/users/airandfingers/orgs","repos_url":"https://api.github.com/users/airandfingers/repos","events_url":"https://api.github.com/users/airandfingers/events{/privacy}","received_events_url":"https://api.github.com/users/airandfingers/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-04-04T06:10:13Z","updated_at":"2016-06-07T01:30:42Z","closed_at":null,"body":"Per the example at http://plnkr.co/edit/LPGYIf?p=preview, I'm using one property of my option objects as the name for the option, with options=\"t.name for t in tags\".\r\n\r\nRather than use the entire option object as a value, I want to only use the _id property, so that the model I bind to contains a list of _id Strings, rather than a list of Objects. This matches my backend, where my MongoDB documents have _id references to other documents.\r\n\r\nIs it possible to use a single property as the value of an option, e.g. values=\"t._id for t in tags\"?\r\n\r\nMy code is live at http://trollsgoals.ayoshitake.com/"},"comment":{"url":"https://api.github.com/repos/amitava82/angular-multiselect/issues/comments/224137254","html_url":"https://github.com/amitava82/angular-multiselect/issues/26#issuecomment-224137254","issue_url":"https://api.github.com/repos/amitava82/angular-multiselect/issues/26","id":224137254,"user":{"login":"amitava82","id":1279530,"avatar_url":"https://avatars.githubusercontent.com/u/1279530?v=3","gravatar_id":"","url":"https://api.github.com/users/amitava82","html_url":"https://github.com/amitava82","followers_url":"https://api.github.com/users/amitava82/followers","following_url":"https://api.github.com/users/amitava82/following{/other_user}","gists_url":"https://api.github.com/users/amitava82/gists{/gist_id}","starred_url":"https://api.github.com/users/amitava82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amitava82/subscriptions","organizations_url":"https://api.github.com/users/amitava82/orgs","repos_url":"https://api.github.com/users/amitava82/repos","events_url":"https://api.github.com/users/amitava82/events{/privacy}","received_events_url":"https://api.github.com/users/amitava82/received_events","type":"User","site_admin":false},"created_at":"2016-06-07T01:30:42Z","updated_at":"2016-06-07T01:30:42Z","body":"@RobbertWolfs So, I just tried `c.id as c.name for c in fruits` and it binds `id` to the selected.  Can you show me an example in plunk?\r\n\r\nhttp://plnkr.co/edit/NKas7sSP5lGJz3OTv0YU?p=preview"}}
{"actor":{"display_login":"amitava82"}}