{"action":"created","issue":{"url":"https://api.github.com/repos/tiberiuzuld/angular-auto-save-form/issues/3","labels_url":"https://api.github.com/repos/tiberiuzuld/angular-auto-save-form/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/tiberiuzuld/angular-auto-save-form/issues/3/comments","events_url":"https://api.github.com/repos/tiberiuzuld/angular-auto-save-form/issues/3/events","html_url":"https://github.com/tiberiuzuld/angular-auto-save-form/issues/3","id":122152775,"number":3,"title":"Does this support radio buttons? ","user":{"login":"hisham","id":81853,"avatar_url":"https://avatars.githubusercontent.com/u/81853?v=3","gravatar_id":"","url":"https://api.github.com/users/hisham","html_url":"https://github.com/hisham","followers_url":"https://api.github.com/users/hisham/followers","following_url":"https://api.github.com/users/hisham/following{/other_user}","gists_url":"https://api.github.com/users/hisham/gists{/gist_id}","starred_url":"https://api.github.com/users/hisham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hisham/subscriptions","organizations_url":"https://api.github.com/users/hisham/orgs","repos_url":"https://api.github.com/users/hisham/repos","events_url":"https://api.github.com/users/hisham/events{/privacy}","received_events_url":"https://api.github.com/users/hisham/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tiberiuzuld/angular-auto-save-form/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"tiberiuzuld","id":15310395,"avatar_url":"https://avatars.githubusercontent.com/u/15310395?v=3","gravatar_id":"","url":"https://api.github.com/users/tiberiuzuld","html_url":"https://github.com/tiberiuzuld","followers_url":"https://api.github.com/users/tiberiuzuld/followers","following_url":"https://api.github.com/users/tiberiuzuld/following{/other_user}","gists_url":"https://api.github.com/users/tiberiuzuld/gists{/gist_id}","starred_url":"https://api.github.com/users/tiberiuzuld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiberiuzuld/subscriptions","organizations_url":"https://api.github.com/users/tiberiuzuld/orgs","repos_url":"https://api.github.com/users/tiberiuzuld/repos","events_url":"https://api.github.com/users/tiberiuzuld/events{/privacy}","received_events_url":"https://api.github.com/users/tiberiuzuld/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-12-14T23:05:03Z","updated_at":"2015-12-19T16:02:59Z","closed_at":"2015-12-19T16:02:59Z","body":"Something like: \r\n\r\n```\r\n<div>\r\n    <input type=\"radio\" ng-model=\"lunch\" value=\"chicken\" name=\"lunch\">\r\n    <input type=\"radio\" ng-model=\"lunch\" value=\"beef\" name=\"lunch\">\r\n    <input type=\"radio\" ng-model=\"lunch\" value=\"fish\" name=\"lunch\">  \r\n</div>\r\n```\r\n\r\nDoesn't look it. It seems to require name to be unique for each input. "},"comment":{"url":"https://api.github.com/repos/tiberiuzuld/angular-auto-save-form/issues/comments/165999534","html_url":"https://github.com/tiberiuzuld/angular-auto-save-form/issues/3#issuecomment-165999534","issue_url":"https://api.github.com/repos/tiberiuzuld/angular-auto-save-form/issues/3","id":165999534,"user":{"login":"tiberiuzuld","id":15310395,"avatar_url":"https://avatars.githubusercontent.com/u/15310395?v=3","gravatar_id":"","url":"https://api.github.com/users/tiberiuzuld","html_url":"https://github.com/tiberiuzuld","followers_url":"https://api.github.com/users/tiberiuzuld/followers","following_url":"https://api.github.com/users/tiberiuzuld/following{/other_user}","gists_url":"https://api.github.com/users/tiberiuzuld/gists{/gist_id}","starred_url":"https://api.github.com/users/tiberiuzuld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiberiuzuld/subscriptions","organizations_url":"https://api.github.com/users/tiberiuzuld/orgs","repos_url":"https://api.github.com/users/tiberiuzuld/repos","events_url":"https://api.github.com/users/tiberiuzuld/events{/privacy}","received_events_url":"https://api.github.com/users/tiberiuzuld/received_events","type":"User","site_admin":false},"created_at":"2015-12-19T16:02:59Z","updated_at":"2015-12-19T16:02:59Z","body":"Hello,\r\n\r\nSo just only today had time to fix the issue with radio buttons. The only way to fix it was to add a new directive called [auto-save-form-property]. \r\n\r\nFor radio inputs or if you want to group inputs on the same property use the [auto-save-form-property] attribute on one the inputs and prefix the name with a group name\r\n\r\n```html\r\n  <ng-form name=\"myForm\" auto-save-form=\"callback\"> \r\n    <input type=\"radio\" ng-model=\"user.gender\" name=\"inputGroupName.gender1\" \r\n      auto-save-form-property=\"inputGroupName.gender\" value=\"male\"/>Male\r\n    <input type=\"radio\" ng-model=\"user.gender\" name=\"inputGroupName.gender2\" value=\"female\"/>Female\r\n  </ng-form>\r\n```\r\n\r\nNote the [name] needs to be different on each input so the $dirty check will work.\r\nLet me know if you have any more issues, and thank you for your feedback.\r\n\r\nThanks,\r\nTiberiu"}}