{"action":"created","issue":{"url":"https://api.github.com/repos/ng-select/ng-select/issues/625","repository_url":"https://api.github.com/repos/ng-select/ng-select","labels_url":"https://api.github.com/repos/ng-select/ng-select/issues/625/labels{/name}","comments_url":"https://api.github.com/repos/ng-select/ng-select/issues/625/comments","events_url":"https://api.github.com/repos/ng-select/ng-select/issues/625/events","html_url":"https://github.com/ng-select/ng-select/issues/625","id":332860203,"node_id":"MDU6SXNzdWUzMzI4NjAyMDM=","number":625,"title":"ng-select defaultValue not working","user":{"login":"wvc20180615","id":40302974,"node_id":"MDQ6VXNlcjQwMzAyOTc0","avatar_url":"https://avatars2.githubusercontent.com/u/40302974?v=4","gravatar_id":"","url":"https://api.github.com/users/wvc20180615","html_url":"https://github.com/wvc20180615","followers_url":"https://api.github.com/users/wvc20180615/followers","following_url":"https://api.github.com/users/wvc20180615/following{/other_user}","gists_url":"https://api.github.com/users/wvc20180615/gists{/gist_id}","starred_url":"https://api.github.com/users/wvc20180615/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wvc20180615/subscriptions","organizations_url":"https://api.github.com/users/wvc20180615/orgs","repos_url":"https://api.github.com/users/wvc20180615/repos","events_url":"https://api.github.com/users/wvc20180615/events{/privacy}","received_events_url":"https://api.github.com/users/wvc20180615/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-15T17:40:28Z","updated_at":"2018-06-16T09:42:45Z","closed_at":"2018-06-16T09:42:45Z","author_association":"NONE","body":"Hi I am new to angular. I tried to use ngx-select to do the search for dropdown. i set the defaultValue as {'id':'1', 'text': 'project 1'}. But the field shows the placeholder text instead of default value. Please advise how can I display the default value in the input dropdown field. thanks\r\n\r\nprojectIdList=[{'id':'1', 'text': 'project 1'}, 'id':'2', 'text': 'project 2'}, 'id':'3', 'text': 'project 3'}];\r\n\r\n<ngx-select [items]=\"projectIdList\" placeholder=\"Select project id\"\r\n[(ngModel)]=\"selectedProjectId\" name=\"projectId\"\r\n[defaultValue]=\"defaultProjectIds\"\r\n(selectionChanges)=\"projectIdSelectionChange($event)\"\r\n[multiple]=\"false\" autoClearSearch=\"true\"\r\n[allowClear]=\"true\">\r\n</ngx-select>\r\n\r\n### More Info\r\nngx-select version: 3.5.9\r\n"},"comment":{"url":"https://api.github.com/repos/ng-select/ng-select/issues/comments/397801018","html_url":"https://github.com/ng-select/ng-select/issues/625#issuecomment-397801018","issue_url":"https://api.github.com/repos/ng-select/ng-select/issues/625","id":397801018,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzgwMTAxOA==","user":{"login":"varnastadeus","id":17824796,"node_id":"MDQ6VXNlcjE3ODI0Nzk2","avatar_url":"https://avatars2.githubusercontent.com/u/17824796?v=4","gravatar_id":"","url":"https://api.github.com/users/varnastadeus","html_url":"https://github.com/varnastadeus","followers_url":"https://api.github.com/users/varnastadeus/followers","following_url":"https://api.github.com/users/varnastadeus/following{/other_user}","gists_url":"https://api.github.com/users/varnastadeus/gists{/gist_id}","starred_url":"https://api.github.com/users/varnastadeus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/varnastadeus/subscriptions","organizations_url":"https://api.github.com/users/varnastadeus/orgs","repos_url":"https://api.github.com/users/varnastadeus/repos","events_url":"https://api.github.com/users/varnastadeus/events{/privacy}","received_events_url":"https://api.github.com/users/varnastadeus/received_events","type":"User","site_admin":false},"created_at":"2018-06-16T09:42:45Z","updated_at":"2018-06-16T09:42:45Z","author_association":"MEMBER","body":"wrong repo dude."}}
{"actor":{"display_login":"varnastadeus"}}