Timeline for Using a function in the router's "redirectTo" to determine where to redirect prevents aot
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 22, 2019 at 14:28 | vote | accept | David Alsh | ||
Jun 21, 2019 at 16:47 | answer | added | Martin Patsov | timeline score: 9 | |
Apr 3, 2018 at 23:32 | comment | added | David Alsh |
Use Angular's CanActivate on the route and put your redirect logic there. It's essentially route middleware.
|
|
Apr 3, 2018 at 15:17 | comment | added | Khaled Awad | did you find a solution for that | |
Sep 1, 2017 at 1:30 | history | asked | David Alsh | CC BY-SA 3.0 |