{"action":"created","issue":{"url":"https://api.github.com/repos/RSSchermer/ember-multiselect-checkboxes/issues/15","labels_url":"https://api.github.com/repos/RSSchermer/ember-multiselect-checkboxes/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/RSSchermer/ember-multiselect-checkboxes/issues/15/comments","events_url":"https://api.github.com/repos/RSSchermer/ember-multiselect-checkboxes/issues/15/events","html_url":"https://github.com/RSSchermer/ember-multiselect-checkboxes/issues/15","id":107171984,"number":15,"title":"Showing a checked item from an array of objects","user":{"login":"vikram-s-narayan","id":5373305,"avatar_url":"https://avatars.githubusercontent.com/u/5373305?v=3","gravatar_id":"","url":"https://api.github.com/users/vikram-s-narayan","html_url":"https://github.com/vikram-s-narayan","followers_url":"https://api.github.com/users/vikram-s-narayan/followers","following_url":"https://api.github.com/users/vikram-s-narayan/following{/other_user}","gists_url":"https://api.github.com/users/vikram-s-narayan/gists{/gist_id}","starred_url":"https://api.github.com/users/vikram-s-narayan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vikram-s-narayan/subscriptions","organizations_url":"https://api.github.com/users/vikram-s-narayan/orgs","repos_url":"https://api.github.com/users/vikram-s-narayan/repos","events_url":"https://api.github.com/users/vikram-s-narayan/events{/privacy}","received_events_url":"https://api.github.com/users/vikram-s-narayan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-18T09:52:55Z","updated_at":"2015-09-18T13:36:08Z","closed_at":null,"body":"I'm able to show an item as checked (selected) if it is a plain javascript array like this: \r\n\r\nController: \r\n```\r\nexport default Ember.Controller.extend({`\r\n      selectedLetters: ['a'],\r\n      lettersArray: ['a','b','c'],\r\n    });\r\n```\r\n    \r\nTemplate: \r\n`{{multiselect-checkboxes options=lettersArray selection=selectedLetters}}`\r\n\r\nHowever, I'm unable to show an item as checked when I have to deal with an array of objects: \r\n\r\nController: \r\n```\r\n    export default Ember.Controller.extend({\r\n        selectedLetters: [{letterId: 1, letter: 'a'}], //I'd like to have this as a pre-selected item\r\n        lettersArray: [{letterId: 1, letter: 'a'},{letterId: 1, letter: 'b'},{letterId: 1, letter: 'c'}],\r\n    });\r\n```\r\nTemplate: \r\n    `{{multiselect-checkboxes options=lettersArray labelProperty='letter' selection=selectedLetters}}`\r\n\r\n----\r\nAm I missing something here? Can you please help?"},"comment":{"url":"https://api.github.com/repos/RSSchermer/ember-multiselect-checkboxes/issues/comments/141453084","html_url":"https://github.com/RSSchermer/ember-multiselect-checkboxes/issues/15#issuecomment-141453084","issue_url":"https://api.github.com/repos/RSSchermer/ember-multiselect-checkboxes/issues/15","id":141453084,"user":{"login":"vikram-s-narayan","id":5373305,"avatar_url":"https://avatars.githubusercontent.com/u/5373305?v=3","gravatar_id":"","url":"https://api.github.com/users/vikram-s-narayan","html_url":"https://github.com/vikram-s-narayan","followers_url":"https://api.github.com/users/vikram-s-narayan/followers","following_url":"https://api.github.com/users/vikram-s-narayan/following{/other_user}","gists_url":"https://api.github.com/users/vikram-s-narayan/gists{/gist_id}","starred_url":"https://api.github.com/users/vikram-s-narayan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vikram-s-narayan/subscriptions","organizations_url":"https://api.github.com/users/vikram-s-narayan/orgs","repos_url":"https://api.github.com/users/vikram-s-narayan/repos","events_url":"https://api.github.com/users/vikram-s-narayan/events{/privacy}","received_events_url":"https://api.github.com/users/vikram-s-narayan/received_events","type":"User","site_admin":false},"created_at":"2015-09-18T13:36:08Z","updated_at":"2015-09-18T13:36:08Z","body":"thanks for the quick response. I'm using Ember 1.13.7"}}