我正在尝试在 Angular2 项目中使用amazon-cognito-identity-js实现“记住我”选项以进行身份验证工作流程。问题参考。
目前的认证流程
我认为这看起来不错,但我遇到了一些意外的错误,不是经常发生,而是一旦 1 小时过去(实际会话已过期)。
问题
step 5。this.cognitoUtil.getCurrentUser();异步函数吗?cognitoUser.getSession()如果会话过期,将返回什么?session.isValid()?我有一个使用 Angular 6 构建的站点。我们在 safari 浏览器上缓存图像时遇到问题。
图片在 safari 浏览器上不断下载,即使图片 URL 相同。Chrome 在不下载相同图像的情况下运行良好,但仅在 Safari 浏览器上出现问题。
您能分享一下您遇到此类问题的经验吗?
我正在使用ngx-bootstrap我的项目特别是Dropdown.
我想在这里添加一些动画,但不知道该怎么做.有没有推荐的方法来添加动画ngx-bootstrap/dropdown?
我正在使用 Angular 材料中的这个 UI 组件。
https://material.angular.io/components/datepicker/overview#customizing-the-calendar-header
我想在自定义标题中添加关闭按钮,但似乎还不可能。
至少我想从日期选择器标题组件获取输出事件。
我正在使用angular-cli项目,我使用Heroku进行CD集成.存储库位于Bitbucket上.现在我将通过Bithubcket管道使用firebase部署服务,所以我尝试如下.
的package.json
{
"name": "mail-activator",
"version": "0.0.0",
"license": "MIT",
"scripts": {
"ng": "ng",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
"postinstall": "ng build --prod",
"deploy": "firebase deploy --token $FIREBASE_TOKEN",
"start": "node server.js"
},
"private": true,
"dependencies": {
"@angular/animations": "^4.1.3",
"@angular/cli": "1.0.3",
"@angular/common": "^4.1.3",
"@angular/compiler": "^4.1.3",
"@angular/compiler-cli": "^4.1.3",
"@angular/core": "^4.1.3",
"@angular/forms": "^4.1.3",
"@angular/http": "^4.1.3",
"@angular/material": "^2.0.0-beta.5",
"@angular/platform-browser": "^4.1.3",
"@angular/platform-browser-dynamic": "^4.1.3",
"@angular/router": "^4.1.3",
"angular2-prettyjson": "^2.0.5",
"angularfire2": "^4.0.0-rc.0",
"bootstrap": "^4.0.0-alpha.6",
"core-js": "^2.4.1",
"express": "^4.15.3",
"firebase": "^4.0.0",
"firebase-tools": "^3.9.0", …Run Code Online (Sandbox Code Playgroud) webdeploy firebase firebase-tools angular-cli bitbucket-pipelines
angular ×4
angular-cli ×1
animation ×1
dropdown ×1
firebase ×1
image ×1
javascript ×1
safari ×1
webdeploy ×1