ember-cli-model-name
v0.0.1
Published
Name your models in your templates based on resource name
Readme
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
