Skip to content

Instantly share code, notes, and snippets.

@teddyzeenny
Last active August 29, 2015 14:21
Show Gist options
  • Save teddyzeenny/36f88c82545249816fbf to your computer and use it in GitHub Desktop.
Save teddyzeenny/36f88c82545249816fbf to your computer and use it in GitHub Desktop.
New method syntax
// Use:
export default Route.extend({
beforeModel() {
},
model() {
},
afterModel() {
},
setupController(controller, model) {
}
})
// instead of
export default Route.extend({
beforeModel: function() {
},
model: function() {
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment