{"action":"opened","issue":{"url":"https://api.github.com/repos/angular/angular/issues/10274","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/10274/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/10274/comments","events_url":"https://api.github.com/repos/angular/angular/issues/10274/events","html_url":"https://github.com/angular/angular/issues/10274","id":167436370,"number":10274,"title":"Form with two-way bound input Only Validates from Inline Template","user":{"login":"bennyp123","id":1466420,"avatar_url":"https://avatars.githubusercontent.com/u/1466420?v=3","gravatar_id":"","url":"https://api.github.com/users/bennyp123","html_url":"https://github.com/bennyp123","followers_url":"https://api.github.com/users/bennyp123/followers","following_url":"https://api.github.com/users/bennyp123/following{/other_user}","gists_url":"https://api.github.com/users/bennyp123/gists{/gist_id}","starred_url":"https://api.github.com/users/bennyp123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bennyp123/subscriptions","organizations_url":"https://api.github.com/users/bennyp123/orgs","repos_url":"https://api.github.com/users/bennyp123/repos","events_url":"https://api.github.com/users/bennyp123/events{/privacy}","received_events_url":"https://api.github.com/users/bennyp123/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-25T18:41:54Z","updated_at":"2016-07-25T18:41:54Z","closed_at":null,"body":"**I'm submitting a ...**  (check one with \"x\")\r\n```\r\n[x] bug report\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\ninput with two-way binding - [(ngModel)] - does not validate with correct pattern. (i.e. ng-invalid is applied, form.valid = true). Removing the two-way binding allows the form to validate.\r\n\r\n**Expected/desired behavior**\r\ninputs two-way bound to ngModel properties should validate according to the pattern attribute.\r\n\r\n**Reproduction of the problem**\r\n[This plunk](http://plnkr.co/edit/kulONefp0jtofTh9IGBn?p=preview) illustrates how swapping out an identical template from inline to templateUrl breaks the validation.\r\n\r\n**What is the expected behavior?**\r\nform should validate when template is loaded from url\r\n\r\n**What is the motivation / use case for changing the behavior?**\r\nnon-broken templates\r\n\r\n\r\n**Please tell us about your environment:**\r\n\r\npretty stuffy, but pleasant at night. mac os, atom, chrome - all the doodads\r\n\r\n* **Angular version:** 2.0.0-rc.4 with forms 0.2.0f\r\n \r\n* **Browser:** [ Chrome 52 ] \r\n Seems to work as expected in firefox and safari\r\n* **Language:** [ TypeScript 1.8.0 ] \r\n"}}
{"actor":{"display_login":"bennyp123"}}