title: How to implement password reset in angularjs with UI router
body: <p>In my AngularJS application, I have login, registration and forgot password functionality implemented using JWT and using UI Router for states. </p>
  
  <p>When a user clicks forgot password, an email will be sent to the user with the link to reset the password. How do we map this link to a particular state (password reset) in our AngularJS application?</p>
  
  <p>The password reset link will be in the format of <a href="http://myapp.com/reset/token" rel="nofollow">http://myapp.com/reset/token</a>. I will need to retrieve that token also. </p>
  
  <p>Thank you.</p>