没有合适的资源?快使用搜索试试~ 我知道了~
ember-context:消耗Ember应用程序中其他位置的值
共58个文件
js:21个
gitkeep:11个
json:4个
需积分: 5 0 下载量 7 浏览量
2021-03-05
18:46:21
上传
评论
收藏 223KB ZIP 举报
温馨提示
@ alexlafroscia / ember-context 消耗Ember应用程序中其他位置的值 兼容性 Ember.js v3.12或更高版本 Ember CLI v2.13或更高版本 Node.js v10或更高版本 安装 ember install @alexlafroscia/ember-context 用法 Ember Services非常适合在您的应用程序之间共享全局状态。 但是,在许多情况下,某些状态需要共享,而不必将其视为全局状态。 它应该在应用程序的子树中共享,但是一旦不再呈现该子树,则将其丢弃。 要填补这一空白,请输入ember-context ! 该附加组件基于给定值的两个相关角色; “提供者”和“消费者”。 此“提供者”始终是ContextProvider组件的实例,可以像这样使用: < ContextProvider @ key = " shared
资源推荐
资源详情
资源评论
收起资源包目录
ember-context-main.zip (58个子文件)
ember-context-main
.eslintrc.json 660B
ember-cli-build.js 1KB
.github
workflows
ci.yml 2KB
publish.yml 549B
testem.js 589B
yarn.lock 525KB
.npmignore 411B
.ember-cli 280B
CONTRIBUTING.md 2KB
config
environment.js 90B
ember-try.js 2KB
.prettierrc 28B
LICENSE.md 1KB
README.md 3KB
.husky
pre-commit 59B
.gitignore 1B
addon
-private
get-provider-for.js 905B
component-manager
context.js 1KB
components
context-provider.js 560B
helpers
consume-context.js 359B
.gitkeep 0B
index.js 351B
.template-lintrc.js 163B
.editorconfig 367B
tests
integration
decorators
inject-test.js 2KB
helpers
consume-context-test.js 3KB
.gitkeep 0B
index.html 1KB
test-helper.js 234B
helpers
.gitkeep 0B
dummy
public
robots.txt 51B
config
targets.js 305B
ember-cli-update.json 400B
environment.js 1KB
optional-features.json 154B
app
index.html 696B
models
.gitkeep 0B
styles
app.css 0B
controllers
.gitkeep 0B
components
consume-key.hbs 14B
.gitkeep 0B
consume-key.js 231B
helpers
.gitkeep 0B
app.js 388B
templates
application.hbs 52B
router.js 240B
routes
.gitkeep 0B
unit
.gitkeep 0B
.gitignore 369B
app
components
context-provider.js 84B
helpers
consume-context.js 97B
.gitkeep 0B
index.js 72B
.watchmanconfig 37B
CHANGELOG.md 1KB
.eslintignore 240B
package.json 3KB
vendor
.gitkeep 0B
共 58 条
- 1
资源评论
菊次郎的回南天
- 粉丝: 41
- 资源: 4565
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功