Skip to content

Instantly share code, notes, and snippets.

@santoshyadavdev
Last active March 25, 2020 08:29
Show Gist options
  • Save santoshyadavdev/e0afbde04d0623f9998c209bcf74cd7a to your computer and use it in GitHub Desktop.
Save santoshyadavdev/e0afbde04d0623f9998c209bcf74cd7a to your computer and use it in GitHub Desktop.
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
const routes: Routes = [
{
path: 'employee',
loadChildren: () => import('./employee/employee.module').then(m => m.EmployeeModule)
},
{
path: 'department',
loadChildren: () => import('./department/department.module').then(m => m.DepartmentModule)
}
];
@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule]
})
export class AppRoutingModule { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment