I use Angular UIRouter and set the following states:
$stateProvider.state('forgot-password', {
url: '/forgot-password',
component: 'forgotPassword'
})
.state('forgot-password.reset', {
url: '/:token',
component: 'forgotPasswordReset'
});
When I go to /forgot-password, I get the correct view, but when I go to /forgot-password/abc, I still get a link to forgotPassword. How to make the router send me state forgot-password.reset?
source
share