From a8fa9116a784c26f801ef9eab980baba1b9716b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joe=20Ku=CC=88ng?= Date: Thu, 6 Apr 2023 14:31:14 +0200 Subject: [PATCH] routing changes --- src/app/app-routing.module.ts | 4 ++-- src/styles.css | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index f77720b..14d17d8 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -8,8 +8,8 @@ import {ListComponent} from "./list/list.component"; @NgModule({ imports: [RouterModule.forRoot([ {path: 'home', component: HomeComponent}, - {path: ':location', component: ListComponent}, - {path: ':location/detail/:id', component: DetailComponent}, + {path: 'location/:location', component: ListComponent}, + {path: 'location/:location/:id', component: DetailComponent}, {path: '**', redirectTo: 'home'} ])], exports: [RouterModule], diff --git a/src/styles.css b/src/styles.css index 2dfd443..7dca88b 100644 --- a/src/styles.css +++ b/src/styles.css @@ -3,3 +3,6 @@ @tailwind components; @tailwind utilities; +body{ + overflow-y: hidden; +}