Last active
August 29, 2015 14:21
-
-
Save teddyzeenny/36f88c82545249816fbf to your computer and use it in GitHub Desktop.
New method syntax
This file contains 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
// 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