4
我使用的角度UIRouter并具有以下状态设置:角UIRouter不与孩子状态改变
$stateProvider.state('forgot-password', {
url: '/forgot-password',
component: 'forgotPassword'
})
.state('forgot-password.reset', {
url: '/:token',
component: 'forgotPasswordReset'
});
当我浏览到/forgot-password
我得到正确的观点然而,当我浏览到/forgot-password/abc
我仍然可以引导到forgotPassword
。我如何让路由器将我发送到forgot-password.reset
状态?
添加URL像'url:'/ reset /:token'' – Indhu