Routes Guard

Routes guard overview

Simple routes guard path "src/app/components/LayoutComponents/Guard/auth.guard.ts". Passed to canActive method of router (see "src/app/pages/dashboard/dashboard-routing.module.ts" example).

This component simply return true or false in case if user logged in or not. In our case User will be redirected to Login page if he is not logged in.