Implementing Route Protection in Angular using CanActivate

In any complex web application, it is necessary to have some sort of authentication to restrict...