网址 http://localhost:9000/#/users/unlock?unlock_token=4QxKTxi4Qnxd7aMqtQUQ
我试着写下来......
.state('unlock_user', {
template: '...',
controller:'UnlockUserCtrl',
url: '/users/unlock?unlock_token',
resolve: {
loadMyFile: function ($ocLazyLoad) {
return $ocLazyLoad.load('scripts/controllers/loginController.js');
}
}
})
答案 0 :(得分:0)
.state('unlock_user', {
template: '...',
controller:'UnlockUserCtrl',
url: '/users/unlock/:unlock_token',
resolve: {
loadMyFile: function ($ocLazyLoad) {
return $ocLazyLoad.load('scripts/controllers/loginController.js');
}
}
})
并在控制器中接收
$scope.unlock_token = $stateParams.unlock_token;
答案 1 :(得分:0)
在网址
中尝试以下操作url: '/users?unlock=:unlock_token'
并按照上述人员的说法接收到这样的控制器。