import { NgModule } from '@angular/core' ; import { RouterModule , Routes } from '@angular/router' ; import { LoginComponent } from '@workshop/ui-login' ; const routes = [ { path : '' , loadChildren : ( ) => import ( './home/home.module' ) . then ( m => m . HomeModule ) } , { path : 'projects' , loadChildren : ( ) => import ( './projects/projects.module' ) . then ( m => m . ProjectsModule ) } , { path : 'customers' , loadChildren : ( ) => import ( './customers/customers.module' ) . then ( m => m . CustomersModule ) } , { path : 'login' , component : LoginComponent } ] ; @ NgModule ( { imports : [ RouterModule . forRoot ( routes ) ] , exports : [ RouterModule ] } ) export class AppRoutingModule { }