### File

`src/app/app-routing.module.ts`

    import { NgModule } from '@angular/core';
    import { Routes, RouterModule } from '@angular/router';
    import { AuthGuard } from './shared';

    const routes: Routes = [
        {
            path: '',
            loadChildren: './layout/layout.module#LayoutModule',
            // canActivate: [AuthGuard]
        },
        { path: 'login1', loadChildren: './login/login.module#LoginModule' },
        { path: 'not-found', loadChildren: './not-found/not-found.module#NotFoundModule' },
        { path: '**', redirectTo: 'not-found' }
    ];

    @NgModule({
        imports: [RouterModule.forRoot(routes)],
        exports: [RouterModule]
    })
    export class AppRoutingModule { }

# results matching ""

# No results matching ""