{"action":"created","issue":{"url":"https://api.github.com/repos/xpepermint/angular-ui-switch/issues/2","labels_url":"https://api.github.com/repos/xpepermint/angular-ui-switch/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/xpepermint/angular-ui-switch/issues/2/comments","events_url":"https://api.github.com/repos/xpepermint/angular-ui-switch/issues/2/events","html_url":"https://github.com/xpepermint/angular-ui-switch/issues/2","id":46071030,"number":2,"title":"How to ad ngChange","user":{"login":"uncedric","id":4605936,"avatar_url":"https://avatars.githubusercontent.com/u/4605936?v=3","gravatar_id":"","url":"https://api.github.com/users/uncedric","html_url":"https://github.com/uncedric","followers_url":"https://api.github.com/users/uncedric/followers","following_url":"https://api.github.com/users/uncedric/following{/other_user}","gists_url":"https://api.github.com/users/uncedric/gists{/gist_id}","starred_url":"https://api.github.com/users/uncedric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uncedric/subscriptions","organizations_url":"https://api.github.com/users/uncedric/orgs","repos_url":"https://api.github.com/users/uncedric/repos","events_url":"https://api.github.com/users/uncedric/events{/privacy}","received_events_url":"https://api.github.com/users/uncedric/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/xpepermint/angular-ui-switch/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-10-17T07:31:22Z","updated_at":"2015-01-05T07:41:21Z","closed_at":"2014-10-20T16:08:37Z","body":""},"comment":{"url":"https://api.github.com/repos/xpepermint/angular-ui-switch/issues/comments/68676668","html_url":"https://github.com/xpepermint/angular-ui-switch/issues/2#issuecomment-68676668","issue_url":"https://api.github.com/repos/xpepermint/angular-ui-switch/issues/2","id":68676668,"user":{"login":"kishanj918","id":3994657,"avatar_url":"https://avatars.githubusercontent.com/u/3994657?v=3","gravatar_id":"","url":"https://api.github.com/users/kishanj918","html_url":"https://github.com/kishanj918","followers_url":"https://api.github.com/users/kishanj918/followers","following_url":"https://api.github.com/users/kishanj918/following{/other_user}","gists_url":"https://api.github.com/users/kishanj918/gists{/gist_id}","starred_url":"https://api.github.com/users/kishanj918/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kishanj918/subscriptions","organizations_url":"https://api.github.com/users/kishanj918/orgs","repos_url":"https://api.github.com/users/kishanj918/repos","events_url":"https://api.github.com/users/kishanj918/events{/privacy}","received_events_url":"https://api.github.com/users/kishanj918/received_events","type":"User","site_admin":false},"created_at":"2015-01-05T07:41:21Z","updated_at":"2015-01-05T07:41:21Z","body":"i'm wondering that how can i get change event on switch!\r\n\r\n<switch id=\"enabled\"  name=\"enabled\" ng-model=\"enabled_1\" class=\"green\" ng-change=\"myquestion_toggle()\">\r\n\r\nIn controller file i've following code.\r\n $scope.myquestion_toggle=function(){\r\n            alert(enabled_1);\r\n}"}}