title: AngularJs - Cancel route navigation on rejected promise
body: <p>I'm working on a project which consists of multiple routes. </p>
  
  <p>While navigating from one route to another I'm using resolve to fetch the data from the server. </p>
  
  <p>In case of resolved promise it is navigating successfully however if the promise is rejected it is going to the the specified route and it is firing $routeChangeError that is not what I expected.</p>
  
  <p>Now I'm trying to cancel the route if the promise is rejected means I want to stay in the current page if the promise is rejected.</p>
  
  <p>How can I do it? Any Ideas or am I not thinking in correct way?</p>