0.0.1 • Published 8 years ago
ember-cli-model-name v0.0.1
ember-cli-model-name
If you've ever been frustrated that there isn't enough context to "model" in your templates, then 'ember-cli-model-name' is the add-on for you. Instead of seeing 'model' in your templates, 'ember-cli-model-name' allows you to use the name of the resource instead.
For example if you have a posts route and you have a collection of posts returned in the model hook of that route, instead of doing
{{#each model as |post|}}
OMG! {{post.name}}
{{/each}}
you can now do
{{#each posts as |post|}}
OMG! {{post.name}}
{{/each}}
Installation
ember install ember-cli-model-name
0.0.1
8 years ago