{"action":"created","issue":{"url":"https://api.github.com/repos/urish/angular-spinner/issues/82","repository_url":"https://api.github.com/repos/urish/angular-spinner","labels_url":"https://api.github.com/repos/urish/angular-spinner/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/urish/angular-spinner/issues/82/comments","events_url":"https://api.github.com/repos/urish/angular-spinner/issues/82/events","html_url":"https://github.com/urish/angular-spinner/issues/82","id":127783186,"number":82,"title":"Working with cordova?","user":{"login":"jycouet","id":5312607,"avatar_url":"https://avatars.githubusercontent.com/u/5312607?v=3","gravatar_id":"","url":"https://api.github.com/users/jycouet","html_url":"https://github.com/jycouet","followers_url":"https://api.github.com/users/jycouet/followers","following_url":"https://api.github.com/users/jycouet/following{/other_user}","gists_url":"https://api.github.com/users/jycouet/gists{/gist_id}","starred_url":"https://api.github.com/users/jycouet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jycouet/subscriptions","organizations_url":"https://api.github.com/users/jycouet/orgs","repos_url":"https://api.github.com/users/jycouet/repos","events_url":"https://api.github.com/users/jycouet/events{/privacy}","received_events_url":"https://api.github.com/users/jycouet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-01-20T21:03:25Z","updated_at":"2017-01-15T13:45:14Z","closed_at":null,"body":"This code works perfectly:\n\n``` javascript\napp.controller('MyController', ['$scope', 'usSpinnerService', function($scope, usSpinnerService){\n    $scope.startSpin = function(){\n        usSpinnerService.spin('spinner-1');\n    }\n    $scope.stopSpin = function(){\n        usSpinnerService.stop('spinner-1');\n    }\n}]);\n```\n\nBut this one:\n\n``` javascript\napp.controller('MyController', ['$scope', 'usSpinnerService', function($scope, usSpinnerService){\n    $scope.myClick = function(){\n        usSpinnerService.spin('spinner-1');\n        cordova.exec(function(){\n            $scope.data = \"Done\";\n            usSpinnerService.stop('spinner-1');\n        }, function(err) {\n            callback('Nothing to echo.');\n        }, \"Echo\", \"echo\", []);\n    }\n}]);\n```\n\nthe spin start but never stop!\nIf I remove usSpinnerService.spin('spinner-1'); and usSpinnerService.stop('spinner-1');\nThen I can see my $scope.data set to \"Done\"\n\nCan you help me please?\n\nThank you\n"},"comment":{"url":"https://api.github.com/repos/urish/angular-spinner/issues/comments/272696128","html_url":"https://github.com/urish/angular-spinner/issues/82#issuecomment-272696128","issue_url":"https://api.github.com/repos/urish/angular-spinner/issues/82","id":272696128,"user":{"login":"Attrash-Islam","id":7091543,"avatar_url":"https://avatars.githubusercontent.com/u/7091543?v=3","gravatar_id":"","url":"https://api.github.com/users/Attrash-Islam","html_url":"https://github.com/Attrash-Islam","followers_url":"https://api.github.com/users/Attrash-Islam/followers","following_url":"https://api.github.com/users/Attrash-Islam/following{/other_user}","gists_url":"https://api.github.com/users/Attrash-Islam/gists{/gist_id}","starred_url":"https://api.github.com/users/Attrash-Islam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Attrash-Islam/subscriptions","organizations_url":"https://api.github.com/users/Attrash-Islam/orgs","repos_url":"https://api.github.com/users/Attrash-Islam/repos","events_url":"https://api.github.com/users/Attrash-Islam/events{/privacy}","received_events_url":"https://api.github.com/users/Attrash-Islam/received_events","type":"User","site_admin":false},"created_at":"2017-01-15T13:45:14Z","updated_at":"2017-01-15T13:45:14Z","body":"Hi @jycouet and thanks for opening this issue.\r\n\r\nWhy you're using cordova.exec? Cordova is wrapping what you see in browser into the mobile, so what works in browsers should work in mobile (except what related to cordova-webview and compatibility issues).\r\n\r\nWhat you're trying to do?"}}
{"actor":{"display_login":"Attrash-Islam"}}