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
Is there a way to declare a "activate" router hook inside a component? I am trying to resolve some data before controller invocation, but either $activate/activate/$routerOnActivate is never called. On the other hand $canActivate seems to work.
The text was updated successfully, but these errors were encountered:
If you're using a templateUrl in your component, there is an existing bug where the $routerOnActivate hook isn't called. There is a pending PR for it here: angular/angular#6978. Once that gets merged in and the build is updated then that hook will work correctly. It will work fine if you use a template in your component
Hello.
Is there a way to declare a "activate" router hook inside a component? I am trying to resolve some data before controller invocation, but either $activate/activate/$routerOnActivate is never called. On the other hand $canActivate seems to work.
The text was updated successfully, but these errors were encountered: