如何使用$state.go
将查询字符串传递给嵌套状态路由?
码:
.state('masterform', {
url: "/masterform?action&assetId&contentTypeId&folderid",
views: {
content: {
templateUrl: 'components/masterform/masterform.html',
controller: 'masterformCtrl as masterform'
}
}
})
.state('masterform.access', {
url: "/access",
views: {
content: {
templateUrl: 'components/masterform/access/access.html',
controller: 'accessCtrl as access'
}
}
})
Run Code Online (Sandbox Code Playgroud)
谢谢.
通过将AWS Lambda与Cognito结合使用,我们可以使用以下代码自动验证电子邮件。
event.response.autoConfirmUser = true;
event.response.autoVerifyEmail = true;
Run Code Online (Sandbox Code Playgroud)
如何在此处进行自定义请求验证?
就像我要在认知注册时发送PROMO CODE一样,那么我可以有一个代码来验证此Promo Code,并在无效Promocode时拒绝注册请求。