Ember Data issue - get most read articles


#1

Hi,

I made a model named ‘post’ which represent an article. I have a listing with articles in an category. If I click one I have the article.

My issue here is that on left side or at the bottom of all pages I want to have section with 5 articles (only title as links) that are the most read. How can I accomplish that using the post model.

What I need is two requests, one for my listing (lets say 10 articles) and one with most read articles.

Thanks.


#2

Use setupController like this:


#3

Thanks for answer. It solve the issue. Mostly the “setupController” part.