Skip to content

This add-on provides helpers related to ember-data.

License

Notifications You must be signed in to change notification settings

triggercode/ember-store-helpers

 
 

Repository files navigation

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 above

Installation

ember install ember-store-helpers

Usage

{{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 guide for details.

License

This project is licensed under the MIT License.

About

This add-on provides helpers related to ember-data.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 87.6%
  • HTML 12.4%