HELP
If there is a model
hook in app/routes/post.js
say
model() {
return this.store.query('post');
}
in template
the returned promised is accessed using
{{#each model as |post|}}
...
{{/each}}
Is there any way to set alias
for the model? Something like this in route
or controller
?
posts: alias('model')
So I can access the returned promise in the template as
{{#each posts as |post|}}
...
{{/each}}
Is this something which is already present or something that got missed from ember documentation?