const routes: Routes = [
{ path: "", component: WelcomeComponent, canActivate: [AuthorizeGuard] },
{
path: "auth",
loadChildren: "./auth/auth.module#AuthModule"
},
{ - это app routes module ,, const routes: Routes = [
{
path: "",
component: AuthContainerComponent,
children: [
{
path: "login",
component: LoginComponent,
pathMatch: 'full',
},
{
path: "forgot-password",
component: ForgotPasswordComponent,
pathMatch: 'full',
},
{
path: "logout",
component: LogoutComponent,
pathMatch: 'full',
},
{
path: 'auth',
redirectTo: 'login',
pathMatch: 'full',
}
],
},
]; - а это auth module