You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a multi-module application with lazy loading.
When I navigate from top module to bottom child module, everything is fine.
But when I try to route from a bottom child lazy module to another child lazy module, I get strange behavior.
It doesn't matter if a lazy module is loaded or not, as I found out, this does not affect the problem.
This problem is repeated unstable, sometimes the transition works as expected!
I tried many combinations, but the problem can not solve.
That I tried:
this.router.navigate([op/services/management/edit/${id}]);
this.router.navigate([/op/services/management/edit/${id}]);
this.router.navigate(['/op/services/management/edit/', id]);
I'm sorry my mistake)
The button to go to the desired route had a default type, that is, 'submit', and its button was in form...
Change it to type='button' and all work fine!
I have problem.
I have a multi-module application with lazy loading.
When I navigate from top module to bottom child module, everything is fine.
But when I try to route from a bottom child lazy module to another child lazy module, I get strange behavior.
It's ok :
=> http://localhost:4200/#/op/services/ =>
=> http://localhost:4200/#/op/services/management/ =>
=> http://localhost:4200/#/op/services/management/edit/123
=> http://localhost:4200/#/op
=> http://localhost:4200/#/op/test/management/
=> http://localhost:4200/#/op/test/management/edit/321
This is bad:
http://localhost:4200/#/op/test/management/edit/321 =>
=> http://localhost:4200/#/op/services/management/edit/123
When I try it, I got '?' sign in start URL, like http://localhost:4200/?#/op/services/management/edit/123,
and my app was full reload!
It doesn't matter if a lazy module is loaded or not, as I found out, this does not affect the problem.
This problem is repeated unstable, sometimes the transition works as expected!
I tried many combinations, but the problem can not solve.
That I tried:
this.router.navigate([
op/services/management/edit/${id}
]);this.router.navigate([
/op/services/management/edit/${id}
]);this.router.navigate(['/op/services/management/edit/', id]);
this.router.navigateByUrl(
op/services/management/edit/${id}
);this.router.navigateByUrl(
/op/services/management/edit/${id}
);routerLink = "/op/services/management/edit/123"
routerLink = "op/services/management/edit/123"
Help me understand why the route changes?
The text was updated successfully, but these errors were encountered: