From dfe3e729fda35da613335340bf805ce137d82ff1 Mon Sep 17 00:00:00 2001 From: drendog <53359960+drendog@users.noreply.github.com> Date: Tue, 9 Aug 2022 09:54:40 +0200 Subject: [PATCH 01/10] feat(routing): add routing per tab, ref: UNICT-DMI/git-catalogue#7 (#95) --- src/app/app-routing.module.ts | 1 + src/app/home/home.component.html | 4 ++-- src/app/home/home.component.ts | 18 +++++++++++++++++- src/app/services/catalogue/catalogue.model.ts | 1 + .../services/catalogue/catalogue.service.ts | 16 +++++++++++++++- src/assets/default.json | 15 ++++++++++----- 6 files changed, 46 insertions(+), 9 deletions(-) diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 14f4e75..5ba4033 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -12,6 +12,7 @@ import { RepoDetailsResolverService } from './services/resolvers/repo-details-re const routes: Routes = [ { path: '', component: HomeComponent }, { path: 'home', component: HomeComponent }, + { path: 'tab/:tab', component: HomeComponent }, { path: 'details/:id', component: RepoDetailsComponent, diff --git a/src/app/home/home.component.html b/src/app/home/home.component.html index d1c599c..7961b49 100644 --- a/src/app/home/home.component.html +++ b/src/app/home/home.component.html @@ -27,9 +27,9 @@ -