{"action":"created","issue":{"url":"https://api.github.com/repos/ng-select/ng-select/issues/597","repository_url":"https://api.github.com/repos/ng-select/ng-select","labels_url":"https://api.github.com/repos/ng-select/ng-select/issues/597/labels{/name}","comments_url":"https://api.github.com/repos/ng-select/ng-select/issues/597/comments","events_url":"https://api.github.com/repos/ng-select/ng-select/issues/597/events","html_url":"https://github.com/ng-select/ng-select/issues/597","id":328826977,"node_id":"MDU6SXNzdWUzMjg4MjY5Nzc=","number":597,"title":"unable to set value in ansyc in formcontrol","user":{"login":"manuelapop","id":20730965,"node_id":"MDQ6VXNlcjIwNzMwOTY1","avatar_url":"https://avatars1.githubusercontent.com/u/20730965?v=4","gravatar_id":"","url":"https://api.github.com/users/manuelapop","html_url":"https://github.com/manuelapop","followers_url":"https://api.github.com/users/manuelapop/followers","following_url":"https://api.github.com/users/manuelapop/following{/other_user}","gists_url":"https://api.github.com/users/manuelapop/gists{/gist_id}","starred_url":"https://api.github.com/users/manuelapop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manuelapop/subscriptions","organizations_url":"https://api.github.com/users/manuelapop/orgs","repos_url":"https://api.github.com/users/manuelapop/repos","events_url":"https://api.github.com/users/manuelapop/events{/privacy}","received_events_url":"https://api.github.com/users/manuelapop/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-03T13:02:17Z","updated_at":"2018-06-04T05:37:43Z","closed_at":null,"author_association":"NONE","body":"Please fill below information if issuing a bug report. \r\n### Expected behaviour\r\nI should be able to set the value a formcontrolname in an ansyc multiselect\r\n\r\n### Actual behaviour\r\nunable to set the value\r\n### More Info\r\nng-select version: latest\r\nbrowser: chrome\r\nreproducible in demo page: [YES/NO] no\r\nhow do you set the formcontrolname of an ansyc multiselect. this is not working for me\r\n\r\n people3$: Observable<Person[]>;\r\n  people3Loading = false;\r\n  people3input$ = new Subject<string>();\r\n   selectedPersons: Person[] = <any>[{ name: 'Karyn Wright' }, { name: 'Other' }];\r\n  heroForm: FormGroup;\r\n\r\n  ngOnInit() {\r\n    this.heroForm = this.fb.group({\r\n      selectedPersonItem: this.selectedPersons\r\n  });\r\n\r\n    this.loadPeople3();\r\n  }\r\n\r\n private loadPeople3() {\r\n    this.people3$ = concat(\r\n        of([]), // default items\r\n        this.people3input$.pipe(\r\n           debounceTime(200),\r\n           distinctUntilChanged(),\r\n           tap(() => this.people3Loading = true),\r\n           switchMap(term => this.dataService.getPeople(term).pipe(\r\n               catchError(() => of([])), // empty list on error\r\n               tap(() => this.people3Loading = false)\r\n           )) \r\n        )\r\n    );\r\n}\r\n<form [formGroup]=\"heroForm\" novalidate>\r\n        <ng-select [items]=\"people3$ | async\"\r\n                   bindLabel=\"name\"\r\n                   [addTag]=\"true\"\r\n                   [multiple]=\"true\"\r\n                   [hideSelected]=\"true\"\r\n                   [loading]=\"people3Loading\"\r\n                   [typeahead]=\"people3input$\"\r\n                   formControlName=\"selectedPersonItem\">\r\n        </ng-select>\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ng-select/ng-select/issues/comments/394239381","html_url":"https://github.com/ng-select/ng-select/issues/597#issuecomment-394239381","issue_url":"https://api.github.com/repos/ng-select/ng-select/issues/597","id":394239381,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDIzOTM4MQ==","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-04T05:37:43Z","updated_at":"2018-06-04T05:37:43Z","author_association":"MEMBER","body":"just use `bindValue=\"id\"` then 🤔 "}}
{"actor":{"display_login":"varnastadeus"}}