Using an Angular 2 router, I would like to capture an event when a route is requested for activation. In Angular 1.x, I used $ locationChangeSuccess and then checked if the user was registered or not.
I need to do something similar with Angular 2, so I can redirect the user to the login screen if he is not already authenticated.
source share