I have state like
mysite.com/#/index
This is the default page loaded on initilization
There are other subroutes
mysite.com/#/about
mysite.com/#/contact
If someone types mysite.com/#/about Can I control the loading of substate about ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The Ember Router does this automatically, as long as you have defined routes (URLs) in your Router.
Something like the following will automatically navigate to the correct state when the URL mysite.com/#/about is entered. If you want to control what happens when that state is entered and exited, specify this inside the enter() and exit() functions.