Skip to content

ember-sapporo/ember-store-helpers

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
app
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.