{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/ui-router/issues/2146","labels_url":"https://api.github.com/repos/angular-ui/ui-router/issues/2146/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/ui-router/issues/2146/comments","events_url":"https://api.github.com/repos/angular-ui/ui-router/issues/2146/events","html_url":"https://github.com/angular-ui/ui-router/issues/2146","id":98356893,"number":2146,"title":"When calling $state.go with notify = false resolve function is executed","user":{"login":"davideicardi","id":852570,"avatar_url":"https://avatars.githubusercontent.com/u/852570?v=3","gravatar_id":"","url":"https://api.github.com/users/davideicardi","html_url":"https://github.com/davideicardi","followers_url":"https://api.github.com/users/davideicardi/followers","following_url":"https://api.github.com/users/davideicardi/following{/other_user}","gists_url":"https://api.github.com/users/davideicardi/gists{/gist_id}","starred_url":"https://api.github.com/users/davideicardi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davideicardi/subscriptions","organizations_url":"https://api.github.com/users/davideicardi/orgs","repos_url":"https://api.github.com/users/davideicardi/repos","events_url":"https://api.github.com/users/davideicardi/events{/privacy}","received_events_url":"https://api.github.com/users/davideicardi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular-ui/ui-router/labels/bug","name":"bug","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-31T09:55:50Z","updated_at":"2015-08-03T18:53:41Z","closed_at":null,"body":"I want to change the state without reloading the controller. All seems to work fine except that my `resolve` function is always called.\r\n\r\nTo change state I use:\r\n\r\n    $state.go(\"home\", {param1:\"changed\" + changes++}, { notify : false});\r\n\r\nHere my plnkr: http://plnkr.co/edit/jo3C56ZwkPE27FtRU1Y6\r\n\r\nBasically I log each time the controller is loaded or the resolve is called, then I added a button to change the state. As you can see resolve is always called also with notify = false.\r\n\r\nWhat do you think? My problem is that inside the resolve I load some resource and I want this code to be called only when really changing state, not when changing state using `notify=false`.\r\n\r\nI use version ui-router 0.2.15 and angular 1.4.3."},"comment":{"url":"https://api.github.com/repos/angular-ui/ui-router/issues/comments/127369298","html_url":"https://github.com/angular-ui/ui-router/issues/2146#issuecomment-127369298","issue_url":"https://api.github.com/repos/angular-ui/ui-router/issues/2146","id":127369298,"user":{"login":"eddiemonge","id":127535,"avatar_url":"https://avatars.githubusercontent.com/u/127535?v=3","gravatar_id":"","url":"https://api.github.com/users/eddiemonge","html_url":"https://github.com/eddiemonge","followers_url":"https://api.github.com/users/eddiemonge/followers","following_url":"https://api.github.com/users/eddiemonge/following{/other_user}","gists_url":"https://api.github.com/users/eddiemonge/gists{/gist_id}","starred_url":"https://api.github.com/users/eddiemonge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eddiemonge/subscriptions","organizations_url":"https://api.github.com/users/eddiemonge/orgs","repos_url":"https://api.github.com/users/eddiemonge/repos","events_url":"https://api.github.com/users/eddiemonge/events{/privacy}","received_events_url":"https://api.github.com/users/eddiemonge/received_events","type":"User","site_admin":false},"created_at":"2015-08-03T18:53:41Z","updated_at":"2015-08-03T18:53:41Z","body":"#2108 has the controller reinitialize when changing to a different state. This has the resolve fired but not the controller so its slightly different."}}