{"action":"created","issue":{"url":"https://api.github.com/repos/angular/material2/issues/1018","repository_url":"https://api.github.com/repos/angular/material2","labels_url":"https://api.github.com/repos/angular/material2/issues/1018/labels{/name}","comments_url":"https://api.github.com/repos/angular/material2/issues/1018/comments","events_url":"https://api.github.com/repos/angular/material2/issues/1018/events","html_url":"https://github.com/angular/material2/issues/1018","id":170865059,"number":1018,"title":"No value accessor for from control","user":{"login":"cschroeter","id":1846056,"avatar_url":"https://avatars.githubusercontent.com/u/1846056?v=3","gravatar_id":"","url":"https://api.github.com/users/cschroeter","html_url":"https://github.com/cschroeter","followers_url":"https://api.github.com/users/cschroeter/followers","following_url":"https://api.github.com/users/cschroeter/following{/other_user}","gists_url":"https://api.github.com/users/cschroeter/gists{/gist_id}","starred_url":"https://api.github.com/users/cschroeter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cschroeter/subscriptions","organizations_url":"https://api.github.com/users/cschroeter/orgs","repos_url":"https://api.github.com/users/cschroeter/repos","events_url":"https://api.github.com/users/cschroeter/events{/privacy}","received_events_url":"https://api.github.com/users/cschroeter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-12T12:55:04Z","updated_at":"2016-08-31T01:39:22Z","closed_at":null,"body":"#### Bug, feature request, or proposal:\r\nBug\r\n\r\n#### What is the expected behavior?\r\nThere should be an value accessor.\r\n\r\n#### What is the current behavior?\r\n```\r\nmain.987e5bf….bundle.js:17 EXCEPTION: No value accessor for form control with name: 'username'\r\n```\r\n\r\n#### What are the steps to reproduce?\r\nThis bug occurs only if you run ```ng build --prod ```. \r\n\r\nUse angular-cli@webpack to create a new project.\r\n\r\n```typescript\r\nimport { BrowserModule } from '@angular/platform-browser';\r\nimport { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ReactiveFormsModule } from '@angular/forms';\r\nimport { MdCardModule } from '@angular2-material/card/card';\r\nimport { MdInputModule } from '@angular2-material/input/input';\r\nimport { MdButtonModule } from '@angular2-material/button/button';\r\nimport { AppComponent } from './app.component';\r\n\r\n@NgModule({\r\n  declarations: [\r\n    AppComponent\r\n  ],\r\n  imports: [\r\n    BrowserModule,\r\n    CommonModule,\r\n    ReactiveFormsModule,\r\n    MdCardModule,\r\n    MdInputModule,\r\n    MdButtonModule,\r\n  ],\r\n  providers: [],\r\n  entryComponents: [AppComponent],\r\n  bootstrap: [AppComponent]\r\n})\r\nexport class AppModule {\r\n\r\n}\r\n``` \r\n\r\n```html\r\n<form [formGroup]=\"form\">\r\n  <md-card>\r\n    <md-card-title>{{title}}</md-card-title>\r\n    <md-card-content>\r\n      <md-input placeholder=\"Username\" formControlName=\"username\"></md-input>\r\n      <md-input placeholder=\"Password\" formControlName=\"password\"></md-input>\r\n    </md-card-content>\r\n    <md-card-actions align=\"end\">\r\n      <button md-button color=\"primary\" type=\"submit\">LOGIN</button>\r\n    </md-card-actions>\r\n  </md-card>\r\n</form>\r\n```\r\n\r\n#### What is the use-case or motivation for changing an existing behavior?\r\nBuild an Angular2 app with prod flag.\r\n\r\n#### Which versions of Angular, Material, OS, browsers are affected?\r\nAngular@RC.5, Angular-CLI@webpack.2, Material@alpha.7-2, OSX 10.11.5\r\n\r\n#### Is there anything else we should know?\r\nAs mentioned above, this only happens with the prod flag\r\n"},"comment":{"url":"https://api.github.com/repos/angular/material2/issues/comments/243633927","html_url":"https://github.com/angular/material2/issues/1018#issuecomment-243633927","issue_url":"https://api.github.com/repos/angular/material2/issues/1018","id":243633927,"user":{"login":"jelbourn","id":838736,"avatar_url":"https://avatars.githubusercontent.com/u/838736?v=3","gravatar_id":"","url":"https://api.github.com/users/jelbourn","html_url":"https://github.com/jelbourn","followers_url":"https://api.github.com/users/jelbourn/followers","following_url":"https://api.github.com/users/jelbourn/following{/other_user}","gists_url":"https://api.github.com/users/jelbourn/gists{/gist_id}","starred_url":"https://api.github.com/users/jelbourn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jelbourn/subscriptions","organizations_url":"https://api.github.com/users/jelbourn/orgs","repos_url":"https://api.github.com/users/jelbourn/repos","events_url":"https://api.github.com/users/jelbourn/events{/privacy}","received_events_url":"https://api.github.com/users/jelbourn/received_events","type":"User","site_admin":false},"created_at":"2016-08-31T01:39:22Z","updated_at":"2016-08-31T01:39:22Z","body":"@cschroeter is this still happening with the latest version of webpack angular-cli?"}}
{"actor":{"display_login":"jelbourn"}}