Skip to content

Commit

Permalink
feat: add routing
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlj95 committed Sep 30, 2023
1 parent fed5374 commit 1d06ad5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import { NgModule } from '@angular/core'
import { RouterModule, Routes } from '@angular/router'
import { AboutComponent } from './about/about.component'

const routes: Routes = []
const routes: Routes = [
{ path: '', component: AboutComponent, pathMatch: 'full' },
{ path: '**', redirectTo: '' },
]

@NgModule({
imports: [
Expand Down
2 changes: 1 addition & 1 deletion src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
<div class="after-header">
<app-no-script></app-no-script>
<main>
<app-about></app-about>
<router-outlet></router-outlet>
</main>
</div>

0 comments on commit 1d06ad5

Please sign in to comment.