ember-router-meta:人路由器元

时间:2021-05-26 20:38:47
【文件属性】:
文件名称:ember-router-meta:人路由器元
文件大小:133KB
文件格式:ZIP
更新时间:2021-05-26 20:38:47
JavaScript 余烬路由器元 此附加组件可帮助用户将元数据添加到其余烬应用程序中的路由。 使用附加 插件扩展了router.js文件中用于定义路由的this.route()函数。 例如,如果您想将pageName添加到路由中,则可以执行以下操作。 Router.map(function() { this.route('example', {pageName: 'example Route'}, function() { this.route('child', {pageName: 'child Route'}); }); }); 可以将其与任何属性名称一起使用,前提是ember当前不使用它(例如resetNamespace)。 路由元数据服务 服务route-metadata将存储每个路由的元数据,因此需要将其注入到路由中才能访问数据。 routeMetadata: Ember.in
【文件预览】:
ember-router-meta-master
----.gitignore(355B)
----app()
--------.gitkeep(0B)
--------services()
--------instance-initializers()
----package.json(2KB)
----package-lock.json(490KB)
----.watchmanconfig(37B)
----.travis.yml(1KB)
----LICENSE(34KB)
----index.js(65B)
----addon()
--------.gitkeep(0B)
--------services()
--------utils()
--------mixins()
--------instance-initializers()
----testem.js(600B)
----.eslintrc.js(3KB)
----README.md(3KB)
----vendor()
--------.gitkeep(0B)
----tests()
--------dummy()
--------integration()
--------unit()
--------helpers()
--------.eslintrc.js(330B)
--------index.html(1KB)
--------test-helper.js(228B)
----config()
--------ember-try.js(1KB)
--------environment.js(90B)
----.eslintignore(175B)
----.ember-cli(280B)
----ember-cli-build.js(494B)
----.npmignore(287B)
----.editorconfig(368B)

网友评论