{"action":"created","issue":{"url":"https://api.github.com/repos/fronteed/icheck/issues/62","repository_url":"https://api.github.com/repos/fronteed/icheck","labels_url":"https://api.github.com/repos/fronteed/icheck/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/fronteed/icheck/issues/62/comments","events_url":"https://api.github.com/repos/fronteed/icheck/issues/62/events","html_url":"https://github.com/fronteed/icheck/issues/62","id":17312864,"number":62,"title":"Angularjs Directive","user":{"login":"Subash","id":3478693,"avatar_url":"https://avatars.githubusercontent.com/u/3478693?v=3","gravatar_id":"","url":"https://api.github.com/users/Subash","html_url":"https://github.com/Subash","followers_url":"https://api.github.com/users/Subash/followers","following_url":"https://api.github.com/users/Subash/following{/other_user}","gists_url":"https://api.github.com/users/Subash/gists{/gist_id}","starred_url":"https://api.github.com/users/Subash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Subash/subscriptions","organizations_url":"https://api.github.com/users/Subash/orgs","repos_url":"https://api.github.com/users/Subash/repos","events_url":"https://api.github.com/users/Subash/events{/privacy}","received_events_url":"https://api.github.com/users/Subash/received_events","type":"User","site_admin":false},"labels":[{"id":29867137,"url":"https://api.github.com/repos/fronteed/icheck/labels/features","name":"features","color":"d7e102","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/fronteed/icheck/milestones/1","html_url":"https://github.com/fronteed/icheck/milestones/2.0","labels_url":"https://api.github.com/repos/fronteed/icheck/milestones/1/labels","id":409148,"number":1,"title":"2.0","description":"Revised.","creator":{"login":"fronteed","id":1612675,"avatar_url":"https://avatars.githubusercontent.com/u/1612675?v=3","gravatar_id":"","url":"https://api.github.com/users/fronteed","html_url":"https://github.com/fronteed","followers_url":"https://api.github.com/users/fronteed/followers","following_url":"https://api.github.com/users/fronteed/following{/other_user}","gists_url":"https://api.github.com/users/fronteed/gists{/gist_id}","starred_url":"https://api.github.com/users/fronteed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fronteed/subscriptions","organizations_url":"https://api.github.com/users/fronteed/orgs","repos_url":"https://api.github.com/users/fronteed/repos","events_url":"https://api.github.com/users/fronteed/events{/privacy}","received_events_url":"https://api.github.com/users/fronteed/received_events","type":"User","site_admin":false},"open_issues":14,"closed_issues":38,"state":"open","created_at":"2013-08-23T09:04:48Z","updated_at":"2015-12-09T05:57:42Z","due_on":null,"closed_at":null},"comments":73,"created_at":"2013-07-28T14:57:44Z","updated_at":"2016-12-07T09:42:03Z","closed_at":null,"body":"Any thoughts on making this an Angularjs directive ?\n"},"comment":{"url":"https://api.github.com/repos/fronteed/icheck/issues/comments/265401249","html_url":"https://github.com/fronteed/icheck/issues/62#issuecomment-265401249","issue_url":"https://api.github.com/repos/fronteed/icheck/issues/62","id":265401249,"user":{"login":"fabiorme","id":18003540,"avatar_url":"https://avatars.githubusercontent.com/u/18003540?v=3","gravatar_id":"","url":"https://api.github.com/users/fabiorme","html_url":"https://github.com/fabiorme","followers_url":"https://api.github.com/users/fabiorme/followers","following_url":"https://api.github.com/users/fabiorme/following{/other_user}","gists_url":"https://api.github.com/users/fabiorme/gists{/gist_id}","starred_url":"https://api.github.com/users/fabiorme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabiorme/subscriptions","organizations_url":"https://api.github.com/users/fabiorme/orgs","repos_url":"https://api.github.com/users/fabiorme/repos","events_url":"https://api.github.com/users/fabiorme/events{/privacy}","received_events_url":"https://api.github.com/users/fabiorme/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T09:42:03Z","updated_at":"2016-12-07T09:42:03Z","body":"I tried your directive but with chrome on my Android device, often do become the checked boxes I have to click two times, first the outline turns blue the second checked. instead of the chrome version desktop checkbox does not detect the event ng-click associated with the checkbox.\r\n\r\n\r\nI placed this directive, in the desktop version works perfectly, but in chrome mobile version of Android my model does not update the values ​​of cehecked even if the box is selected. someone can tell me how can I fix this? thank you\r\n\r\n```\r\n.directive('iCheck', function ($timeout, $parse) {\r\n        return {\r\n            require: '?ngModel',\r\n            link: function ($scope, element, $attrs, ngModel) {\r\n                $scope.$applyAsync(function () {\r\n                    var checkToggle = $parse($attrs['checkToggle']);\r\n                    if (ngModel) {\r\n                        var render = ngModel.$render;\r\n                        ngModel.$render = function () {\r\n                            render();\r\n                            element.iCheck('update');\r\n                        }\r\n                    }\r\n                    element.on('ifCreated', function () {\r\n                        if ($attrs['iCheck']) {\r\n                            element.parent().addClass('icheck_' + $attrs['iCheck']);\r\n                        }\r\n                    }).iCheck({\r\n                        radioClass: $attrs['checkClass'] || 'iradio_square-blue',\r\n                        checkboxClass: $attrs['checkClass'] || 'icheckbox_square-blue'\r\n                    }).on('ifChanged', function (event) {\r\n                        element.triggerHandler('click');\r\n                        element.triggerHandler('change');\r\n                         //Can be used for modelless inputs, otherwise use ngChange\r\n                        $scope.$apply(function () {\r\n                            event.isChecked = element[0].checked;\r\n                            checkToggle($scope, { $event: event });\r\n                        });\r\n                    });\r\n                });\r\n            }\r\n        };\r\n    });\r\n```"}}
{"actor":{"display_login":"fabiorme"}}