title: Clear History and Reload Page on Login/Logout Using Ionic Framework
body: <p>I am new to mobile application development with Ionic. On login and logout I need to reload the page, in order to refresh the data, however, <code>$state.go('mainPage')</code> takes the user back to the view without reloading - the controller behind it is never invoked.</p>
  
  <p>Is there a way to clear history and reload the state in Ionic?</p>