{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/2543","labels_url":"https://api.github.com/repos/angular/angular/issues/2543/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/2543/comments","events_url":"https://api.github.com/repos/angular/angular/issues/2543/events","html_url":"https://github.com/angular/angular/issues/2543","id":88178757,"number":2543,"title":"using ng-control/ng-model/ng-form-control with custom components","user":{"login":"rolandjitsu","id":1479737,"avatar_url":"https://avatars.githubusercontent.com/u/1479737?v=3","gravatar_id":"","url":"https://api.github.com/users/rolandjitsu","html_url":"https://github.com/rolandjitsu","followers_url":"https://api.github.com/users/rolandjitsu/followers","following_url":"https://api.github.com/users/rolandjitsu/following{/other_user}","gists_url":"https://api.github.com/users/rolandjitsu/gists{/gist_id}","starred_url":"https://api.github.com/users/rolandjitsu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rolandjitsu/subscriptions","organizations_url":"https://api.github.com/users/rolandjitsu/orgs","repos_url":"https://api.github.com/users/rolandjitsu/repos","events_url":"https://api.github.com/users/rolandjitsu/events{/privacy}","received_events_url":"https://api.github.com/users/rolandjitsu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-14T12:42:14Z","updated_at":"2015-06-14T19:01:25Z","closed_at":null,"body":"Say I have simple component:\r\n```js\r\nimport { Component, View } from 'angular2/angular2';\r\n@Component({\r\n    selector: 'checkbox'\r\n})\r\n@View({ template: ´<div></div>´ })\r\nexport class Checkbox {}\r\n```\r\nAnd I want to use one of `ng-control`/`ng-form-control` on it:\r\n```html\r\n<checkbox [ng-control]=\"foo\"></checkbox>\r\n```\r\nHow would I go about it? Right now I get an exception `No value accessor for ''` when I try to use it."},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/111864590","html_url":"https://github.com/angular/angular/issues/2543#issuecomment-111864590","issue_url":"https://api.github.com/repos/angular/angular/issues/2543","id":111864590,"user":{"login":"vicb","id":248818,"avatar_url":"https://avatars.githubusercontent.com/u/248818?v=3","gravatar_id":"","url":"https://api.github.com/users/vicb","html_url":"https://github.com/vicb","followers_url":"https://api.github.com/users/vicb/followers","following_url":"https://api.github.com/users/vicb/following{/other_user}","gists_url":"https://api.github.com/users/vicb/gists{/gist_id}","starred_url":"https://api.github.com/users/vicb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vicb/subscriptions","organizations_url":"https://api.github.com/users/vicb/orgs","repos_url":"https://api.github.com/users/vicb/repos","events_url":"https://api.github.com/users/vicb/events{/privacy}","received_events_url":"https://api.github.com/users/vicb/received_events","type":"User","site_admin":false},"created_at":"2015-06-14T19:01:25Z","updated_at":"2015-06-14T19:01:25Z","body":"@rolandjitsu the built-in checkbox might be a good starting point: https://github.com/angular/angular/blob/master/modules/angular2/src/forms/directives/checkbox_value_accessor.ts"}}