{"action":"created","issue":{"url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter/issues/405","repository_url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter","labels_url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter/issues/405/labels{/name}","comments_url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter/issues/405/comments","events_url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter/issues/405/events","html_url":"https://github.com/AngularClass/angular2-webpack-starter/issues/405","id":139734881,"number":405,"title":"Set default state of a checkbox","user":{"login":"chriscurnow","id":2943047,"avatar_url":"https://avatars.githubusercontent.com/u/2943047?v=3","gravatar_id":"","url":"https://api.github.com/users/chriscurnow","html_url":"https://github.com/chriscurnow","followers_url":"https://api.github.com/users/chriscurnow/followers","following_url":"https://api.github.com/users/chriscurnow/following{/other_user}","gists_url":"https://api.github.com/users/chriscurnow/gists{/gist_id}","starred_url":"https://api.github.com/users/chriscurnow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chriscurnow/subscriptions","organizations_url":"https://api.github.com/users/chriscurnow/orgs","repos_url":"https://api.github.com/users/chriscurnow/repos","events_url":"https://api.github.com/users/chriscurnow/events{/privacy}","received_events_url":"https://api.github.com/users/chriscurnow/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-03-09T23:35:21Z","updated_at":"2017-01-13T11:55:12Z","closed_at":"2016-03-13T04:24:00Z","body":"This seems like a really stupid question but I just can't find the answer anywhere.\n\nI want to set the initial state of a checkbox based the initial state of the data object.\n\nEg the data object may have an attribute \"isAvailable\" so I want to set the checkbox to match the value of isAvailable.\n\nThe problem I am having is that to set the initial state of a check box to checked you add the \"checked\" attribute to the form control.\n\n(This seems silly as it would seem better to have used checked=\"true\" as you can read the value of the checkbox by reading its \"checked\" value. Anyway that's not the way it is.)\n\nSo it looks like I would have to do an NgIf.\n\nI'm sure there must be an easier way but I just can't find it.\n"},"comment":{"url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter/issues/comments/272426809","html_url":"https://github.com/AngularClass/angular2-webpack-starter/issues/405#issuecomment-272426809","issue_url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter/issues/405","id":272426809,"user":{"login":"mirlabraga","id":5073843,"avatar_url":"https://avatars.githubusercontent.com/u/5073843?v=3","gravatar_id":"","url":"https://api.github.com/users/mirlabraga","html_url":"https://github.com/mirlabraga","followers_url":"https://api.github.com/users/mirlabraga/followers","following_url":"https://api.github.com/users/mirlabraga/following{/other_user}","gists_url":"https://api.github.com/users/mirlabraga/gists{/gist_id}","starred_url":"https://api.github.com/users/mirlabraga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mirlabraga/subscriptions","organizations_url":"https://api.github.com/users/mirlabraga/orgs","repos_url":"https://api.github.com/users/mirlabraga/repos","events_url":"https://api.github.com/users/mirlabraga/events{/privacy}","received_events_url":"https://api.github.com/users/mirlabraga/received_events","type":"User","site_admin":false},"created_at":"2017-01-13T11:55:12Z","updated_at":"2017-01-13T11:55:12Z","body":":+1: "}}
{"actor":{"display_login":"mirlabraga"}}