Skip to content

Instantly share code, notes, and snippets.

@danlucraft
Last active December 20, 2015 12:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danlucraft/6130070 to your computer and use it in GitHub Desktop.
Save danlucraft/6130070 to your computer and use it in GitHub Desktop.
App.DesignsRoute = Ember.Route.extend({
setupController: function(controller) {
controller.set("model", App.Design.findAll());
}
});
App.DesignsController = Ember.ArrayController.extend({
sortProperties: ["name"],
sortAscending: true
});
// App.Design.findAll() returns a Em.A() that later has pushObject called on it a lot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment