Skip to content

Instantly share code, notes, and snippets.

@JemiloII
Created July 7, 2014 18:17
Show Gist options
  • Save JemiloII/268c45d891df45d1a146 to your computer and use it in GitHub Desktop.
Save JemiloII/268c45d891df45d1a146 to your computer and use it in GitHub Desktop.
This is what I was talking about. Same thing could go for the routes as well.
App.ModelIndexController = Ember.ObjectController.extend({
//stuff
});
App.ModelNewController = Ember.ObjectController.extend({
//stuff
});
App.ModelController = Ember.ObjectController.extend({
index: function(){
//stuff
},
new: function(){
//stuff
}
});
// this second time we call Ember.ObjectController.extend once, code is better organized looking and less of a clutter.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment