mardi 21 février 2017

EmberJS: Pass data between routes

What do you recommend to pass a message between routes? What I would like to get is:

  • Sign up page where you can register yourself in the application.
  • If the register process is ok, the application will redirect you to the login page, but it should display a message with the signup response. I mean, if you reach the login page from the signup page redirection, it should display the signup message. If you reach the page directly, it should not display anything.

I have thought on creating a new path for the login route (signup_confirmation). There, if the path is signup_confirmation, it will display the message.

Thoughts?

Thank you in advance!




Aucun commentaire:

Enregistrer un commentaire