{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/7236","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/7236/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/7236/comments","events_url":"https://api.github.com/repos/angular/angular/issues/7236/events","html_url":"https://github.com/angular/angular/issues/7236","id":135753762,"number":7236,"title":"refactor(ngControlName): exportAs ngControl instead of ngForm","user":{"login":"PascalPrecht","id":445106,"avatar_url":"https://avatars.githubusercontent.com/u/445106?v=3","gravatar_id":"","url":"https://api.github.com/users/PascalPrecht","html_url":"https://github.com/PascalPrecht","followers_url":"https://api.github.com/users/PascalPrecht/followers","following_url":"https://api.github.com/users/PascalPrecht/following{/other_user}","gists_url":"https://api.github.com/users/PascalPrecht/gists{/gist_id}","starred_url":"https://api.github.com/users/PascalPrecht/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PascalPrecht/subscriptions","organizations_url":"https://api.github.com/users/PascalPrecht/orgs","repos_url":"https://api.github.com/users/PascalPrecht/repos","events_url":"https://api.github.com/users/PascalPrecht/events{/privacy}","received_events_url":"https://api.github.com/users/PascalPrecht/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","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":28,"created_at":"2016-02-23T14:37:40Z","updated_at":"2016-07-22T16:43:46Z","closed_at":"2016-06-22T21:39:41Z","body":"Something I'd like to discuss first.\r\n\r\nIt turns out, that `ngControl`/`NgControlName` is exported as `ngForm`. This is quite unintuitive when instances of `ngControl`are referenced. Say I want to display an error message when a control is invalid. I'd need an instance of that control to check it's validity:\r\n\r\n```\r\n<input ngControl=\"name\" #name=\"ngForm\">\r\n<p *ngIf=\"!name.valid\">This field is invalid!</p>\r\n```\r\n\r\nWhile this works (and I'm unsure if that's the way to do this), I'd rather expect `ngControl` to be exported as `ngControl`:\r\n\r\n```\r\n<input ngControl=\"name\" #name=\"ngControl\">\r\n```\r\n\r\nIs that something we can change? Or is there any reasoning behind `ngControl` being exported as `ngForm`?\r\n\r\nThis would be a BREAKING change."},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/234594351","html_url":"https://github.com/angular/angular/issues/7236#issuecomment-234594351","issue_url":"https://api.github.com/repos/angular/angular/issues/7236","id":234594351,"user":{"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},"created_at":"2016-07-22T16:43:46Z","updated_at":"2016-07-22T16:43:46Z","body":"@niwsa If you look at the top of the page you linked, you'll see that it says it's the guide to the \"deprecated forms API\" :)  So it's actually correct in suggesting the ngForm export for that old module.  It also links to the new forms docs, which are here: https://angular.io/docs/ts/latest/guide/forms.html. They are properly updated to use the ngModel export.\r\n\r\nSoon we'll be switching over to have the new forms docs as the default on display to avoid this type of confusion. Hopefully you didn't lose too much time!"}}
{"actor":{"display_login":"kara"}}