Angular2 - stepper and browser history's button

85 Views Asked by At

I would like to ask you how to solve problem with angular stepper and browser history's buttons.

When user making something which includes process steps its easy to controll steps with application button for prev and next step but when we make process step without changing route we are not able to use browser history's buttons, because route is not changing.

If we want to change funcionality to use different route for every single step maybe with only url step parameter. How we can prevent that user, which is on step1, cant rewrite url param to step2. Specialy if step1 has logic which send user to step3 without step2.

We tryed to use canDeactivate and on browser back we just do prevstep but its not so good solution and dont work as we expect.

Is there any solutin with single page app with Angular 10?

thanks.

0

There are 0 best solutions below