Skip to content

Instantly share code, notes, and snippets.

View flynsequeira's full-sized avatar
🏠
Working from home

Flyn Sequeira flynsequeira

🏠
Working from home
  • Optum
  • Plano, Texas
View GitHub Profile
@Andrew-Max
Andrew-Max / gist:305483febc3c367dbf57
Last active June 13, 2022 07:55
Route lifecycle hooks guide from Ember meetup lightning talk
App.LibraryRoute = App.ApplicationRoute.extend({
activate: function () {
//no longer enter
this._super();
only called once on entering a route.
},
beforeModel: function () {
// any state you want in place before the model is initialized, this is called before any model promises are resolved
// also could be used to conditionally prevent access to a route by throwing transition.abort