Routing - Protecting Routes
~30 mins
Task 1: Protecting route with guard
routes = [
{path:'create-account', component: CreateAccountComponent,
canActivate:[AuthGuard,RoleGuard]
}
]
routes = [
{path:'create-account', component: CreateAccountComponent,
canActivate:[AuthGuard,RoleGuard]
}
]