DEV Community

Discussion on: How To Build Authentication in Angular Using Node and Passport

jay3dec profile image
Jay Author

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.