$routerCanActivate not working (Angular 1.5 component router aka ngComponentRouter)

174 views Asked by At

First of all, yes, I know ngComponentRouter module is depracated but my app is already working quite well using it other than this one issue.

The issue is that $routerCanActivate function is not firing (search for "$routerCanActivate" in https://docs.angularjs.org/guide/component-router to see how it should work).

Can anyone provide example of it working ?

1

There are 1 answers

0
Jay.M.Hu On

Use $canActivate for static property.