Last active
March 25, 2020 08:29
-
-
Save santoshyadavdev/e0afbde04d0623f9998c209bcf74cd7a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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