mirror of https://github.com/ghostfolio/ghostfolio
committed by
GitHub
6 changed files with 34 additions and 44 deletions
@ -1,22 +0,0 @@ |
|||
import { AuthGuard } from '@ghostfolio/client/core/auth.guard'; |
|||
import { publicRoutes } from '@ghostfolio/common/routes/routes'; |
|||
|
|||
import { NgModule } from '@angular/core'; |
|||
import { RouterModule, Routes } from '@angular/router'; |
|||
|
|||
import { MarketsPageComponent } from './markets-page.component'; |
|||
|
|||
const routes: Routes = [ |
|||
{ |
|||
canActivate: [AuthGuard], |
|||
component: MarketsPageComponent, |
|||
path: '', |
|||
title: publicRoutes.markets.title |
|||
} |
|||
]; |
|||
|
|||
@NgModule({ |
|||
imports: [RouterModule.forChild(routes)], |
|||
exports: [RouterModule] |
|||
}) |
|||
export class MarketsPageRoutingModule {} |
@ -1,14 +0,0 @@ |
|||
import { HomeMarketComponent } from '@ghostfolio/client/components/home-market/home-market.component'; |
|||
|
|||
import { CommonModule } from '@angular/common'; |
|||
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'; |
|||
|
|||
import { MarketsPageRoutingModule } from './markets-page-routing.module'; |
|||
import { MarketsPageComponent } from './markets-page.component'; |
|||
|
|||
@NgModule({ |
|||
declarations: [MarketsPageComponent], |
|||
imports: [CommonModule, HomeMarketComponent, MarketsPageRoutingModule], |
|||
schemas: [CUSTOM_ELEMENTS_SCHEMA] |
|||
}) |
|||
export class MarketsPageModule {} |
@ -0,0 +1,24 @@ |
|||
import { AuthGuard } from '@ghostfolio/client/core/auth.guard'; |
|||
import { publicRoutes } from '@ghostfolio/common/routes/routes'; |
|||
|
|||
import { Routes } from '@angular/router'; |
|||
|
|||
import { GfMarketsPageComponent } from './markets-page.component'; |
|||
|
|||
export const routes: Routes = [ |
|||
{ |
|||
canActivate: [AuthGuard], |
|||
children: [ |
|||
{ |
|||
path: '', |
|||
loadComponent: () => |
|||
import('./markets-page.component').then( |
|||
(m) => m.GfMarketsPageComponent |
|||
) |
|||
} |
|||
], |
|||
component: GfMarketsPageComponent, |
|||
path: '', |
|||
title: publicRoutes.markets.title |
|||
} |
|||
]; |
Loading…
Reference in new issue