{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/ui-select/issues/143","repository_url":"https://api.github.com/repos/angular-ui/ui-select","labels_url":"https://api.github.com/repos/angular-ui/ui-select/issues/143/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/ui-select/issues/143/comments","events_url":"https://api.github.com/repos/angular-ui/ui-select/issues/143/events","html_url":"https://github.com/angular-ui/ui-select/issues/143","id":39577765,"number":143,"title":"Correct way to initialize with an option already selected?","user":{"login":"andrewboni","id":255026,"avatar_url":"https://avatars2.githubusercontent.com/u/255026?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewboni","html_url":"https://github.com/andrewboni","followers_url":"https://api.github.com/users/andrewboni/followers","following_url":"https://api.github.com/users/andrewboni/following{/other_user}","gists_url":"https://api.github.com/users/andrewboni/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewboni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewboni/subscriptions","organizations_url":"https://api.github.com/users/andrewboni/orgs","repos_url":"https://api.github.com/users/andrewboni/repos","events_url":"https://api.github.com/users/andrewboni/events{/privacy}","received_events_url":"https://api.github.com/users/andrewboni/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2014-08-06T00:01:58Z","updated_at":"2017-08-30T23:42:09Z","closed_at":"2014-09-09T02:25:17Z","author_association":"NONE","body":"I'm trying to initialize a `ui-select` input field with a previously saved option. What's the right way to go about selecting the option in the form?\n\nRight now I'm just doing an `ng-init` to populate and select a specific value. Thanks!\n"},"comment":{"url":"https://api.github.com/repos/angular-ui/ui-select/issues/comments/326148973","html_url":"https://github.com/angular-ui/ui-select/issues/143#issuecomment-326148973","issue_url":"https://api.github.com/repos/angular-ui/ui-select/issues/143","id":326148973,"user":{"login":"MariDavila","id":20995293,"avatar_url":"https://avatars3.githubusercontent.com/u/20995293?v=4","gravatar_id":"","url":"https://api.github.com/users/MariDavila","html_url":"https://github.com/MariDavila","followers_url":"https://api.github.com/users/MariDavila/followers","following_url":"https://api.github.com/users/MariDavila/following{/other_user}","gists_url":"https://api.github.com/users/MariDavila/gists{/gist_id}","starred_url":"https://api.github.com/users/MariDavila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MariDavila/subscriptions","organizations_url":"https://api.github.com/users/MariDavila/orgs","repos_url":"https://api.github.com/users/MariDavila/repos","events_url":"https://api.github.com/users/MariDavila/events{/privacy}","received_events_url":"https://api.github.com/users/MariDavila/received_events","type":"User","site_admin":false},"created_at":"2017-08-30T23:42:09Z","updated_at":"2017-08-30T23:42:09Z","author_association":"NONE","body":"Wow. I've been searching for this answer for about two days. They key in my case was this:\r\n\r\n\"if you have a model bound to the select it will initialize with a value as long as the value in the model exists in the options for the select\"\r\n\r\nMy initial value for my model WAS NOT one of the elements in the list, so initially there was no selected item. Thanks.\r\n"}}
{"actor":{"display_login":"MariDavila"}}