Hello, it seems you missed to import the AuthGuard and I missed to reference that in the tutorial also. My bad :)
Simply do,
import {
AuthGuardService as AuthGuard
} from './auth-guard.service';
in app-routing.module.ts. And you should be good to go. Please refer the source code attached in the tutorial for further reference. Thanks for reading.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hello, it seems you missed to import the
AuthGuard
and I missed to reference that in the tutorial also. My bad :)Simply do,
in
app-routing.module.ts
. And you should be good to go. Please refer the source code attached in the tutorial for further reference. Thanks for reading.