mardi 30 juin 2015

Ember: Prevent transition based on response

In Ember.js, how do you conditionally prevent transition based on response?

For example, if the server returns a 403 (in the model hook), then display an alert and do not transition.

It's such a simple and common thing to do, yet I cannot find any documentation or guides to do so.




Aucun commentaire:

Enregistrer un commentaire