Skip to content

Instantly share code, notes, and snippets.

@royeradames
Created April 10, 2022 02:03
Show Gist options
  • Save royeradames/f88f66a4a2bc3e9d88f860b66e51c592 to your computer and use it in GitHub Desktop.
Save royeradames/f88f66a4a2bc3e9d88f860b66e51c592 to your computer and use it in GitHub Desktop.
import { RouterModule, Routes } from '@angular/router';
const appRoutes: Routes = [
{ path: '', component: HomeComponent},
{ path: 'users', component: UserComponent},
{ path: 'servers', component: ServerComponent},
]
imports: [
BrowserModule,
FormsModule,
RouterModule.forRoot(appRoutes)
],
<router-outlet></router-outlet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment