{"action":"opened","issue":{"url":"https://api.github.com/repos/angular-ui/ui-router/issues/2285","labels_url":"https://api.github.com/repos/angular-ui/ui-router/issues/2285/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/ui-router/issues/2285/comments","events_url":"https://api.github.com/repos/angular-ui/ui-router/issues/2285/events","html_url":"https://github.com/angular-ui/ui-router/issues/2285","id":109720685,"number":2285,"title":"ui-sref and ng-click with promise","user":{"login":"celsomarques","id":5353191,"avatar_url":"https://avatars.githubusercontent.com/u/5353191?v=3","gravatar_id":"","url":"https://api.github.com/users/celsomarques","html_url":"https://github.com/celsomarques","followers_url":"https://api.github.com/users/celsomarques/followers","following_url":"https://api.github.com/users/celsomarques/following{/other_user}","gists_url":"https://api.github.com/users/celsomarques/gists{/gist_id}","starred_url":"https://api.github.com/users/celsomarques/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/celsomarques/subscriptions","organizations_url":"https://api.github.com/users/celsomarques/orgs","repos_url":"https://api.github.com/users/celsomarques/repos","events_url":"https://api.github.com/users/celsomarques/events{/privacy}","received_events_url":"https://api.github.com/users/celsomarques/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-05T02:20:36Z","updated_at":"2015-10-05T02:20:36Z","closed_at":null,"body":"Hey guys,\r\n\r\nI'm facing an issue using ui-sref, ui-sref-opts=\"{reload: true}\" and ng-click with promise\r\n\r\n`ui-sref-opts=\"{reload: true}\"` and `ng-click=\"ctrl.save()\"`\r\n\r\n```\r\n<a ui-sref=\"edit.location({ name: ctrl.data.name })\"\r\n  ui-sref-opts=\"{ reload: true }\" ng-click=\"ctrl.save()\" \r\n  class=\"btn btn-success\">Save &amp; Continue</button>\r\n```\r\n\r\n```\r\nthis.save = function() {\r\n  return Person.save(this.data).$promise;\r\n}\r\n```\r\n\r\nWhen next state is opened, promise was not loaded yet. How can I avoid this?\r\nCould you help me with that, please?\r\n\r\nThanks in advance,\r\nCelso"}}