mardi 10 octobre 2017

Route refresh event in Ember

I am interested in showing a modal on refreshing a certain route in an ember app. The modal will have an 'ok' action that will continue the route refresh and a 'cancel' action that will abort the refresh.

I know ember has the 'refresh()' method which can be called from somewhere within the route but cannot act as an event. And, the 'willTransition' event only gets activated if the url path changes. There is also the 'activate()' event which only gets triggered upon entering the route.

Is there a way to handle a route refresh event and also abort or continue the refresh based on a user action?




Aucun commentaire:

Enregistrer un commentaire