I am sending below url to user for forgot-passwor:
How to get auth (string after /reset-password/) value and use that in state?
In my app.js file I want to have url of state to be dynamic and redirect user to reset-password page like below:
The value from the URL fragment
:token is used to populate
$stateParams, which can be injected into a controller.
You can create a controller for the
reset-password state. Inside the controller, you can take the
token value from
$stateParams and pass it on to the
login state with