Skip to content

Commit

Permalink
chore: add dashboard routing (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
MishaZhem authored Jul 30, 2024
1 parent 96b808c commit cdabf14
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
9 changes: 8 additions & 1 deletion apps/taiga-lumbermill/src/components/app/app.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'},
];
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<h1>crypto</h1>
11 changes: 11 additions & 0 deletions apps/taiga-lumbermill/src/dashboards/crypto/crypto.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import {CommonModule} from '@angular/common';
import {ChangeDetectionStrategy, Component} from '@angular/core';

@Component({
standalone: true,
selector: 'lmb-crypto',
imports: [CommonModule],
templateUrl: './crypto.component.html',
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class CryptoComponent {}

0 comments on commit cdabf14

Please sign in to comment.