I have a Ember.Component that wraps a js grid layout algorithm. It works well on a reload, but doesn't respond to route transitions. Say I transition from item\1 to item\2 I'd like the component to re-layout the grid.
didInsertElement: function() {
this._super();
Ember.run.scheduleOnce('afterRender', this, this.afterRenderEvent);
},
afterRenderEvent: function() {
//re-layout grid
}
How do I respond to the route's didTransition action? How should I accomplish this?
Aucun commentaire:
Enregistrer un commentaire