Looking at ArrayController at the moment I came across two ways of implementing them:
From what I see are the differences mainly in
- ArrayController.create vs ArrayController.extend
- In the demo from trek, the data is loaded in the model whereas in the Twitter example it is loaded in the controller.
- For the option of Twitter, I wonder how to do the routing.
Which one of the twos should one use as a common pattern for that?
Trek’s post reflects the most current best practices as of September 2012. It would be better to follow Trek’s examples than the one in the blog post about Twitter.