This commit updates the docs examples to be compatible with the `import-spacing` tslint rule. This is in preparation of updating the docs examples `tslint.json` to match the one generated for new Angular CLI apps in a future commit. PR Close #38143
15 lines
520 B
TypeScript
15 lines
520 B
TypeScript
import { NgModule } from '@angular/core';
|
|
import { Routes, RouterModule } from '@angular/router';
|
|
|
|
export const routes: Routes = [
|
|
{ path: '', redirectTo: 'contact', pathMatch: 'full'},
|
|
{ path: 'items', loadChildren: () => import('./items/items.module').then(m => m.ItemsModule) },
|
|
{ path: 'customers', loadChildren: () => import('./customers/customers.module').then(m => m.CustomersModule) }
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forRoot(routes)],
|
|
exports: [RouterModule]
|
|
})
|
|
export class AppRoutingModule {}
|