I have a route that grabs posts
data from mirage
like so:
import Route from '@ember/routing/route';
export default class PostsRoute extends Route {
async model() {
return this.store.findAll('post');
}
}
I can then do something like this
..do stuff
but let's say I want to rename @model
to foo
and use it in some other component - how can I do that?
Aucun commentaire:
Enregistrer un commentaire