path
is a string that specifies the path of the route.component
is a component type that specifies the component that should be mapped to the route.canActivate
determine if the current user is allowed to activate the component. By default, any user can activate./dashboards/main/
path to the HomeComponent
component:**
) which will be matched by the router if the visited URL doesn’t match any paths in the router configuration. This is usually used to display a page doesn’t exist message or redirect the users to an existing path.