Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4829

Share a data-loading component between multiple pages

$
0
0

@Guillaume wrote:

Greetings,

I would like to create a reusable component that loads data asynchroneously.

For example, I have my blog page, and on the right side a sidebar with a list of item unrelated to the main content (e.g. a list of month to display posts of this month, a list of the last comments on the whole website, etc…).

How should I do that ? I have red that doing asynchroneous requests in components was not a good pratice. I can’t do it in a the route because the sidebar is not related on the context and I want to use it in any route.

Any idea ?

Regards,

Guillaume

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4829

Trending Articles