{"action":"created","issue":{"url":"https://api.github.com/repos/vitalets/checklist-model/issues/72","labels_url":"https://api.github.com/repos/vitalets/checklist-model/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/vitalets/checklist-model/issues/72/comments","events_url":"https://api.github.com/repos/vitalets/checklist-model/issues/72/events","html_url":"https://github.com/vitalets/checklist-model/issues/72","id":83771105,"number":72,"title":"$dirty is only updated when touch the last checkbox in the group","user":{"login":"paulboony","id":1780315,"avatar_url":"https://avatars.githubusercontent.com/u/1780315?v=3","gravatar_id":"","url":"https://api.github.com/users/paulboony","html_url":"https://github.com/paulboony","followers_url":"https://api.github.com/users/paulboony/followers","following_url":"https://api.github.com/users/paulboony/following{/other_user}","gists_url":"https://api.github.com/users/paulboony/gists{/gist_id}","starred_url":"https://api.github.com/users/paulboony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulboony/subscriptions","organizations_url":"https://api.github.com/users/paulboony/orgs","repos_url":"https://api.github.com/users/paulboony/repos","events_url":"https://api.github.com/users/paulboony/events{/privacy}","received_events_url":"https://api.github.com/users/paulboony/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/vitalets/checklist-model/labels/status:need%20more%20information","name":"status:need more information","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-02T01:00:34Z","updated_at":"2015-07-30T16:21:15Z","closed_at":null,"body":"See below. If colors array is ['red', 'green', 'blue'], then ticking then un-ticking red or green doesn't affect $dirty state. Only when I tick and untick blue, then required error message will show up.\r\n```\r\n<form name=\"myForm\">\r\n  <div class=\"checkbox\" ng-repeat=\"color in colors\">\r\n      <label>\r\n        <input type=\"checkbox\" name=\"color\"\r\n              checklist-model=\"formData['selectedColors']\" \r\n              checklist-value=\"color\" \r\n              ng-required=\"formData['selectedColors'].length == 0\">\r\n              {{color}}\r\n      </label>\r\n  </div>\r\n  <p class=\"help-block error\" \r\n    ng-show=\"myForm['color'].$error.required && myForm['color'].$dirty\">\r\n    This field is required.\r\n  </p>\r\n</form>\r\n```"},"comment":{"url":"https://api.github.com/repos/vitalets/checklist-model/issues/comments/126389637","html_url":"https://github.com/vitalets/checklist-model/issues/72#issuecomment-126389637","issue_url":"https://api.github.com/repos/vitalets/checklist-model/issues/72","id":126389637,"user":{"login":"beradrian","id":3028579,"avatar_url":"https://avatars.githubusercontent.com/u/3028579?v=3","gravatar_id":"","url":"https://api.github.com/users/beradrian","html_url":"https://github.com/beradrian","followers_url":"https://api.github.com/users/beradrian/followers","following_url":"https://api.github.com/users/beradrian/following{/other_user}","gists_url":"https://api.github.com/users/beradrian/gists{/gist_id}","starred_url":"https://api.github.com/users/beradrian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beradrian/subscriptions","organizations_url":"https://api.github.com/users/beradrian/orgs","repos_url":"https://api.github.com/users/beradrian/repos","events_url":"https://api.github.com/users/beradrian/events{/privacy}","received_events_url":"https://api.github.com/users/beradrian/received_events","type":"User","site_admin":false},"created_at":"2015-07-30T16:21:15Z","updated_at":"2015-07-30T16:21:15Z","body":"Just create a pull request from your forked repository. I'll review it and merge it."}}