import { Routes } from '@angular/router' ; import { NotFound404Component } from './features/not-found404.component' ; export const routes = [ { path : '' , loadChildren : './features/home/home.module#HomeModule' } , { path : 'chat' , loadChildren : './features/chat/chat.module#ChatModule' , } , { path : 'blog' , loadChildren : './features/blog/blog.module#BlogModule' } , { path : '**' , component : NotFound404Component } , ] ;