{"action":"created","issue":{"url":"https://api.github.com/repos/angular/material2/issues/844","repository_url":"https://api.github.com/repos/angular/material2","labels_url":"https://api.github.com/repos/angular/material2/issues/844/labels{/name}","comments_url":"https://api.github.com/repos/angular/material2/issues/844/comments","events_url":"https://api.github.com/repos/angular/material2/issues/844/events","html_url":"https://github.com/angular/material2/issues/844","id":165004862,"number":844,"title":"md-input two way data binding is not working.","user":{"login":"Muthu2020","id":13945243,"avatar_url":"https://avatars.githubusercontent.com/u/13945243?v=3","gravatar_id":"","url":"https://api.github.com/users/Muthu2020","html_url":"https://github.com/Muthu2020","followers_url":"https://api.github.com/users/Muthu2020/followers","following_url":"https://api.github.com/users/Muthu2020/following{/other_user}","gists_url":"https://api.github.com/users/Muthu2020/gists{/gist_id}","starred_url":"https://api.github.com/users/Muthu2020/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Muthu2020/subscriptions","organizations_url":"https://api.github.com/users/Muthu2020/orgs","repos_url":"https://api.github.com/users/Muthu2020/repos","events_url":"https://api.github.com/users/Muthu2020/events{/privacy}","received_events_url":"https://api.github.com/users/Muthu2020/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular/material2/labels/cannot%20reproduce","name":"cannot reproduce","color":"000000"}],"state":"open","locked":false,"assignee":{"login":"kara","id":3871688,"avatar_url":"https://avatars.githubusercontent.com/u/3871688?v=3","gravatar_id":"","url":"https://api.github.com/users/kara","html_url":"https://github.com/kara","followers_url":"https://api.github.com/users/kara/followers","following_url":"https://api.github.com/users/kara/following{/other_user}","gists_url":"https://api.github.com/users/kara/gists{/gist_id}","starred_url":"https://api.github.com/users/kara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kara/subscriptions","organizations_url":"https://api.github.com/users/kara/orgs","repos_url":"https://api.github.com/users/kara/repos","events_url":"https://api.github.com/users/kara/events{/privacy}","received_events_url":"https://api.github.com/users/kara/received_events","type":"User","site_admin":false},"assignees":[{"login":"kara","id":3871688,"avatar_url":"https://avatars.githubusercontent.com/u/3871688?v=3","gravatar_id":"","url":"https://api.github.com/users/kara","html_url":"https://github.com/kara","followers_url":"https://api.github.com/users/kara/followers","following_url":"https://api.github.com/users/kara/following{/other_user}","gists_url":"https://api.github.com/users/kara/gists{/gist_id}","starred_url":"https://api.github.com/users/kara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kara/subscriptions","organizations_url":"https://api.github.com/users/kara/orgs","repos_url":"https://api.github.com/users/kara/repos","events_url":"https://api.github.com/users/kara/events{/privacy}","received_events_url":"https://api.github.com/users/kara/received_events","type":"User","site_admin":false}],"milestone":null,"comments":8,"created_at":"2016-07-12T06:41:11Z","updated_at":"2016-07-18T17:41:56Z","closed_at":null,"body":"I have used the following tag in html.\r\n\r\n```jade\r\n\"<md-input placeholder='Organization Name',name='name',[(ngModel)]='orgSettings.name',ngControl='name',[ngClass] = \"{'text-danger-error': !orgForm.controls.name.valid && isSubmitted}\">\"\r\n```\r\n\r\nI have added following code in typescript within the constructor.\r\nthis.orgSettings['name'] ='test';\r\n\r\nVersions used\r\nangular2-2.0.0rc4\r\n@angular/forms - 0.2.0\r\nmaterial2-alpha6\r\n\r\nCan you please guide me to resolve this issue\r\n"},"comment":{"url":"https://api.github.com/repos/angular/material2/issues/comments/233402221","html_url":"https://github.com/angular/material2/issues/844#issuecomment-233402221","issue_url":"https://api.github.com/repos/angular/material2/issues/844","id":233402221,"user":{"login":"jrmoser","id":13722099,"avatar_url":"https://avatars.githubusercontent.com/u/13722099?v=3","gravatar_id":"","url":"https://api.github.com/users/jrmoser","html_url":"https://github.com/jrmoser","followers_url":"https://api.github.com/users/jrmoser/followers","following_url":"https://api.github.com/users/jrmoser/following{/other_user}","gists_url":"https://api.github.com/users/jrmoser/gists{/gist_id}","starred_url":"https://api.github.com/users/jrmoser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrmoser/subscriptions","organizations_url":"https://api.github.com/users/jrmoser/orgs","repos_url":"https://api.github.com/users/jrmoser/repos","events_url":"https://api.github.com/users/jrmoser/events{/privacy}","received_events_url":"https://api.github.com/users/jrmoser/received_events","type":"User","site_admin":false},"created_at":"2016-07-18T17:41:55Z","updated_at":"2016-07-18T17:41:55Z","body":"@alenaksu The only issue you are having with Material, is that when you use ngModel you must include the name attribute. However you wouldn't have found this out without fixing the bigger issue that you were having, which was with Angular's forms. They are currently going through a [deprecation phase](https://angular.io/docs/ts/latest/guide/forms.html) and so there are some things you must do to make your plunker work. [Here is a working plunker](http://plnkr.co/edit/j0NsmfvIQPOeDpmmfS3K?p=preview) and the code I adjusted to make it work was:\r\n\r\napp/main.ts\r\n\r\n`...\r\nimport { disableDeprecatedForms, provideForms } from '@angular/forms';\r\n...\r\n\r\nbootstrap(AppComponent, [\r\n  disableDeprecatedForms(),\r\n  provideForms(),\r\n  ]);\r\n`\r\n\r\nthen on your input don't forget to put in the name attribute:\r\n\r\n`<md-input ... name=\"email\"></md-input>`"}}
{"actor":{"display_login":"jrmoser"}}