Angular 5 : Authentication guard automatically navigate to specified compnonent
问题 I have set an authentication guard with firebase email and password login, the issue is that it automatically trigger the route to the specified component I have implemented the authentication guard and set it in the correct module provider (because I have many providers in my application. This is my authentication service: import { Injectable } from '@angular/core'; import { Router, Route ,CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot, CanActivateChild, CanLoad } from '@angular