Created
December 6, 2020 13:25
-
-
Save Bilkiss/686526e0ada888b1dfa7a3027e7b821c 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'; | |
import { CvComponent } from "./components/cv/cv.component"; | |
const routes: Routes = [ | |
{ path: 'cv', component: CvComponent }, | |
{ path: '**', redirectTo: 'cv'} | |
]; | |
@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