Created
April 10, 2022 02:03
-
-
Save royeradames/f88f66a4a2bc3e9d88f860b66e51c592 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 { 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