We have an issue (which I'm sure is faced by most SPA devs) where using forward/backward buttons and manually typing addresses breaks some of our states as we need to pre-load variables based on previous states.
An example of this is a multi-part form, say for example a car insurance application form. Say this form has 4 parts, with the 4th being a confirmation of submission. We do not want the user to be able to go back to step 1, 2 or 3 once they have reached 4. We also don't want the user to go directly from step 1 to step 3 or step 4. I've used some logic with statechangestart to cover most of this logic, the tricky one is not being able to go back from certain states. I'm wondering if it's possible to tell the difference between a route change initiated by the $state service and one initiated by the $location service? Failing that does anyone have some better suggestions on how to regulate the navigation in the site? Regards, Liam -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
