{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/12059","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/12059/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/12059/comments","events_url":"https://api.github.com/repos/angular/angular/issues/12059/events","html_url":"https://github.com/angular/angular/issues/12059","id":180825988,"number":12059,"title":"formControl for multi select","user":{"login":"smartm0use","id":5399265,"avatar_url":"https://avatars.githubusercontent.com/u/5399265?v=3","gravatar_id":"","url":"https://api.github.com/users/smartm0use","html_url":"https://github.com/smartm0use","followers_url":"https://api.github.com/users/smartm0use/followers","following_url":"https://api.github.com/users/smartm0use/following{/other_user}","gists_url":"https://api.github.com/users/smartm0use/gists{/gist_id}","starred_url":"https://api.github.com/users/smartm0use/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smartm0use/subscriptions","organizations_url":"https://api.github.com/users/smartm0use/orgs","repos_url":"https://api.github.com/users/smartm0use/repos","events_url":"https://api.github.com/users/smartm0use/events{/privacy}","received_events_url":"https://api.github.com/users/smartm0use/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-04T07:47:37Z","updated_at":"2016-10-04T08:17:48Z","closed_at":null,"body":"**I'm submitting a ...**\r\n```\r\n[x] bug report => search github for a similar issue or PR before submitting\r\n[ ] feature request\r\n[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question\r\n```\r\n\r\n**Current behavior**\r\nI use `ReactiveFormsModule` and when i add `formControl` to multi select element i can't make it working. I get this error:\r\n\r\n**core.umd.js:3462 EXCEPTION: Uncaught (in promise): Error: Error in http://localhost:3000/app/components/category.component.js class CategoryComponent - inline template:0:1701 caused by: values.map is not a function**\r\n\r\n**Expected behavior**\r\nI should use `formControl` to bind the multi select selected items to a variable. For example i could add to the `select` tag `[formControl]=\"myForm.controls.cities\"` and get all selected items in `myForm.controls.cities.value`.\r\n\r\n**Minimal reproduction of the problem with instructions**\r\nIf i use `select` it works with no problems:\r\n\r\n            <select class=\"ui fluid dropdown\" [formControl]=\"myForm.controls.category\">\r\n                <option *ngFor=\"let item of categories\" value=\"{{item}}\">{{item}}</option>\r\n            </select>\r\n\r\nIf i use select multiple it doesn't work:\r\n\r\n            <select multiple=\"\" class=\"ui fluid dropdown\" [formControl]=\"myForm.controls.category\">\r\n                <option *ngFor=\"let item of categories\" value=\"{{item}}\">{{item}}</option>\r\n            </select>\r\n\r\n**What is the motivation / use case for changing the behavior?**\r\nThe use case is a select menu in which users can select more than choice.\r\n\r\n**Please tell us about your environment:**\r\nI'm on Linux Mint, using WebStorm as IDE and Gulp as build pipeline.\r\n\r\n* **Angular version:** 2.0.X\r\nI'm using Angular 2.0.\r\n\r\n* **Browser:**\r\nI tried it on Chromium and Firefox.\r\n \r\n* **Language:**\r\nTypescript 2.0.2, ES5\r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/251323793","html_url":"https://github.com/angular/angular/issues/12059#issuecomment-251323793","issue_url":"https://api.github.com/repos/angular/angular/issues/12059","id":251323793,"user":{"login":"DzmitryShylovich","id":9335533,"avatar_url":"https://avatars.githubusercontent.com/u/9335533?v=3","gravatar_id":"","url":"https://api.github.com/users/DzmitryShylovich","html_url":"https://github.com/DzmitryShylovich","followers_url":"https://api.github.com/users/DzmitryShylovich/followers","following_url":"https://api.github.com/users/DzmitryShylovich/following{/other_user}","gists_url":"https://api.github.com/users/DzmitryShylovich/gists{/gist_id}","starred_url":"https://api.github.com/users/DzmitryShylovich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DzmitryShylovich/subscriptions","organizations_url":"https://api.github.com/users/DzmitryShylovich/orgs","repos_url":"https://api.github.com/users/DzmitryShylovich/repos","events_url":"https://api.github.com/users/DzmitryShylovich/events{/privacy}","received_events_url":"https://api.github.com/users/DzmitryShylovich/received_events","type":"User","site_admin":false},"created_at":"2016-10-04T08:17:48Z","updated_at":"2016-10-04T08:17:48Z","body":"http://plnkr.co/edit/vfpCDN2jm9vs74M9rzXn?p=preview"}}
{"actor":{"display_login":"DzmitryShylovich"}}