I have an ember application with several objects on a settings page. These have a set of validations which I call as various points.
I also have an ember helper which allows a user to transition to a results page.
I'd like to ensure my objects are valid before I allow the user to transition to the results page.
In Ember 2.0+ I was able to bind a function to a button rather than using the helper and in the function could validate and call transitionToRoute.
I've had to downgrade the ember version to 1.1 and reverted to using the helper due to some third party styling concerns. What is the best way to do this? in older Ember?
Is there a was to call a function before transition in the helper? I couldn't seem to find one.
Aucun commentaire:
Enregistrer un commentaire