Skip to content

Instantly share code, notes, and snippets.

@danlucraft
Last active December 20, 2015 12:19
Show Gist options
  • 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