Created
July 7, 2014 18:17
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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