Use another routes model instead of defining a new one


#1

Is it still possible to use the model for another route to save the API call? Or maybe does ember data already do this for me if I define the same call?

I have an items route and loads items over ember data. I also want to have a my-bids route that is the same data as items (would be making the exact same callbut after the route is loaded I'm going to do some filtering and animation. I know there was some things likecontrollerFor` and stuff like that but a few of the posts I’ve come across aren’t working in my app.

What do I need to do to achieve this?


#2

Inside your nested route: this.modelFor('route.name.here')

http://emberjs.com/api/classes/Ember.Route.html#method_modelFor