title: How to redirect user to previous page after login in Angular Js and IonicFramework project
body: <p>I am working on an ionicframework project which allows user to view feeds and description but redirects the user to login page whenever the user clicks comment send button if the user is not logged in. How do I get the previous state when in the login page so that after login is successful the user is redirected to the previos page?</p>