没有合适的资源?快使用搜索试试~ 我知道了~
ember-promise-helpers:为您的Ember模板提供Promise-y糖
共75个文件
js:41个
gitkeep:11个
md:3个
需积分: 5 0 下载量 53 浏览量
2021-02-23
00:37:03
上传
评论
收藏 177KB ZIP 举报
温馨提示
灰烬的承诺助手 安装 ember install ember-promise-helpers 描述 当Ember的模板遇到诺言时,当诺言得到解决或拒绝时,它将不会重新呈现它。 对于问题的示例(其中模型是特定的单个模型,而不是RSVP.hash): {{ #if model.author }} The author is: {{ model.author.name }} {{ else }} No author! {{ /if }} 如果model.author是一个model.author (例如Ember Data的belongsTo关系),则模板将始终包含以下文本:“作者是:”,而不是“没有作者!”。 Ember Promise Helpers使您可以轻松地在Ember模板中使用Promises,而无需在Route,Controller或Component Ember.
资源推荐
资源详情
资源评论
收起资源包目录
ember-promise-helpers-main.zip (75个子文件)
ember-promise-helpers-main
.jshintrc 520B
.gitignore 369B
app
.gitkeep 0B
helpers
is-rejected.js 69B
await.js 63B
is-pending.js 68B
promise-all.js 69B
promise-rejected-reason.js 81B
is-fulfilled.js 70B
promise-hash.js 70B
package.json 2KB
LICENSE.md 1KB
.watchmanconfig 37B
index.js 72B
CHANGELOG.md 901B
addon
.gitkeep 0B
helpers
is-rejected.js 402B
await.js 4KB
is-pending.js 511B
promise-all.js 228B
promise-rejected-reason.js 376B
is-fulfilled.js 402B
promise-hash.js 170B
testem.js 569B
.github
workflows
test.yml 2KB
dependabot.yml 462B
.prettierignore 240B
.eslintrc.js 1KB
.prettierrc.js 43B
README.md 5KB
vendor
.gitkeep 0B
tests
.jshintrc 834B
dummy
app
app.js 376B
components
.gitkeep 0B
resolver.js 65B
templates
components
.gitkeep 0B
application.hbs 11B
models
.gitkeep 0B
helpers
.gitkeep 0B
index.html 684B
controllers
.gitkeep 0B
routes
.gitkeep 0B
styles
app.css 0B
router.js 246B
public
robots.txt 51B
crossdomain.xml 585B
config
optional-features.json 34B
targets.js 307B
environment.js 1KB
integration
await-test.js 7KB
promise-rejected-reason-test.js 2KB
.gitkeep 0B
is-rejected-test.js 3KB
is-fulfilled-test.js 3KB
promise-hash-test.js 5KB
promise-all-test.js 4KB
is-pending-test.js 2KB
unit
.gitkeep 0B
helpers
after-render.js 331B
resolver.js 256B
start-app.js 539B
destroy-app.js 122B
module-for-acceptance.js 586B
.eslintrc.js 57B
index.html 1KB
test-helper.js 228B
config
ember-try.js 2KB
environment.js 90B
.eslintignore 221B
.ember-cli 280B
ember-cli-build.js 495B
.npmignore 359B
.editorconfig 368B
yarn.lock 376KB
.template-lintrc.js 62B
共 75 条
- 1
资源评论
log边缘
- 粉丝: 17
- 资源: 4605
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功