From cdabf14010df77e98ce226ceb6b2c002355822b4 Mon Sep 17 00:00:00 2001 From: Michael <85116490+MishaZhem@users.noreply.github.com> Date: Tue, 30 Jul 2024 12:18:05 +0300 Subject: [PATCH] chore: add dashboard routing (#69) --- .../taiga-lumbermill/src/components/app/app.routes.ts | 9 ++++++++- .../src/dashboards/crypto/crypto.component.html | 1 + .../src/dashboards/crypto/crypto.component.ts | 11 +++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 apps/taiga-lumbermill/src/dashboards/crypto/crypto.component.html create mode 100644 apps/taiga-lumbermill/src/dashboards/crypto/crypto.component.ts diff --git a/apps/taiga-lumbermill/src/components/app/app.routes.ts b/apps/taiga-lumbermill/src/components/app/app.routes.ts index 3e670a398..68c7fb335 100644 --- a/apps/taiga-lumbermill/src/components/app/app.routes.ts +++ b/apps/taiga-lumbermill/src/components/app/app.routes.ts @@ -2,9 +2,16 @@ import type {Route} from '@angular/router'; export const appRoutes: Route[] = [ { - path: 'dashboards', + path: 'dashboards/iot', loadComponent: async () => import('../../dashboards/iot/iot.component').then((mod) => mod.IotComponent), }, + { + path: 'dashboards/crypto', + loadComponent: async () => + import('../../dashboards/crypto/crypto.component').then( + (mod) => mod.CryptoComponent, + ), + }, {path: '**', redirectTo: 'dashboards'}, ]; diff --git a/apps/taiga-lumbermill/src/dashboards/crypto/crypto.component.html b/apps/taiga-lumbermill/src/dashboards/crypto/crypto.component.html new file mode 100644 index 000000000..94d8806d1 --- /dev/null +++ b/apps/taiga-lumbermill/src/dashboards/crypto/crypto.component.html @@ -0,0 +1 @@ +