import { RouterModule , Routes } from '@angular/router' ; import { ModuleWithProviders } from '@angular/core' ; import { LayoutComponent } from '@tabler/angular-ui' ; const routes = [ { path : '' , component : LayoutComponent , children : [ { path : '' , loadChildren : './docs/docs.module#DocsModule' } , ] , } , { path : '**' , redirectTo : '/404' } , ] ; export const AppRoutingModule = RouterModule . forRoot ( routes , { paramsInheritanceStrategy : 'always' , } ) ;