![]() fetch method returns a promise instead of an actual object. We used find before, because this was the way we did things before upgrade to Ember Model. Returning a promise from a model hook pauses router rendering for the time a resource is loading, which makes it much easier to deal with asynchronous requests. Thanks to that we can remove parts of the code, which dealt with it manually. |
||
---|---|---|
.. | ||
app | ||
config | ||
lib | ||
spec | ||
vendor | ||
travis.coffee |