Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ember-sapporo/ember-store-helpers
This add-on provides helpers related to ember-data.
https://github.com/ember-sapporo/ember-store-helpers
ember ember-addon ember-data
Last synced: 2 months ago
JSON representation
This add-on provides helpers related to ember-data.
- Host: GitHub
- URL: https://github.com/ember-sapporo/ember-store-helpers
- Owner: ember-sapporo
- License: mit
- Created: 2018-04-06T12:19:09.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T20:33:39.000Z (about 2 years ago)
- Last Synced: 2024-11-14T09:29:03.559Z (2 months ago)
- Topics: ember, ember-addon, ember-data
- Language: JavaScript
- Size: 1.87 MB
- Stars: 5
- Watchers: 5
- Forks: 1
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-ember - ember-store-helpers - This add-on provides helpers related to ember-data. (Packages / Helpers)
README
ember-store-helpers
==============================================================================This add-on provides helpers related to ember-data.
Compatibility
------------------------------------------------------------------------------* Ember.js v3.4 or above
* Ember CLI v2.13 or above
* Node.js v8 or aboveInstallation
------------------------------------------------------------------------------```
ember install ember-store-helpers
```Usage
------------------------------------------------------------------------------``` hbs
{{get (store/find-record 'user' 42) 'name'}}{{#each (store/find-all 'user') as |user|}}
{{user.name}}
{{/each}}{{#each (store/query-all 'user' (hash name='John')) as |john|}}
John at age {{user.age}}
{{/each}}{{#let (store/query-record 'setting' (hash key='uniqueKey')) as |setting|}}
{{setting.name}}: {{setting.value}}
{{/let}}
```Contributing
------------------------------------------------------------------------------See the [Contributing](CONTRIBUTING.md) guide for details.
License
------------------------------------------------------------------------------This project is licensed under the [MIT License](LICENSE.md).