app/app-routing.module.ts: import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { SignInComponent } from 'app/sign-in/sign-in.component'; const routes: Routes = [ // lazy-loaded route, a module with its own sub-routes
{
path: 'admin',
loadChildren: './reports/reports.module#AdminModule',
}, // component route, to show a specific component
{
path: 'sign-in',
component: SignInComponent,
},