Hey everyone, I’m new to Ember and I was wondering how the model hook works in routes. I’ve seen various tutorials using the model hook differently. Some will have it return static data. Others will return the promise from a $.getJSON() call. Others will return the promise from Ember.$.getJSON(). And some will use Ember Data.
How does Ember.$ differ from $/jQuery? Is it modifying the promise to be an RSVP promise instead of a jQuery promise? Does Ember Data use RSVP promises?
I’ve tried googling this and every result that comes up is “Angular vs Ember” so I thought I’d ask here. Thanks!
the model for this route. If a promise is returned, the transition will pause until the promise resolves, and the resolved value of the promise will be used as the model for this route.