title: Angular - ui-router get previous state
body: <p>Is there a way to get the previous state of the current state? </p>
  
  <p>For example I would like to know what the previous state was before current state B (where previous state would have been state A). </p>
  
  <p>I am not able to find it in ui-router github doc pages.</p>