-
-
Save labidiaymen/35fd2acb26b0577ddfaa4f1d1cf42ae1 to your computer and use it in GitHub Desktop.
This file contains 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 { RouterModule, Routes } from '@angular/router'; | |
const routes: Routes = [ | |
{ | |
path: '', | |
loadComponent: () => | |
import('./user-detail/user-detail.component').then( | |
({ UserDetailComponent }) => UserDetailComponent | |
), | |
}, | |
]; | |
@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