title: How to clear localstorage when moving from angular page to non angular page?
body: <p>We are working on a JSP/Servlets application , recently we are moving one of module to angular 1.5 with REST api. Now facing challenge when moving from angular state to one of existing JSP page, we are not able to clear local storage.
  Tried with angular <code>$stateChangeSuccess</code> and <code>window.onload; window.beforeonload</code>.
  We are using angular ui-router for SPAs.</p>
  
  <p>If you need any information let me know.</p>