You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.4 KiB
51 lines
1.4 KiB
import { HomeHoldingsComponent } from '@ghostfolio/client/components/home-holdings/home-holdings.component';
|
|
import { HomeMarketComponent } from '@ghostfolio/client/components/home-market/home-market.component';
|
|
import { HomeOverviewComponent } from '@ghostfolio/client/components/home-overview/home-overview.component';
|
|
import { HomeSummaryComponent } from '@ghostfolio/client/components/home-summary/home-summary.component';
|
|
import { AuthGuard } from '@ghostfolio/client/core/auth.guard';
|
|
|
|
import { NgModule } from '@angular/core';
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
|
|
import { HomePageComponent } from './home-page.component';
|
|
|
|
const routes: Routes = [
|
|
{
|
|
canActivate: [AuthGuard],
|
|
children: [
|
|
{
|
|
path: '',
|
|
component: HomeOverviewComponent
|
|
},
|
|
{
|
|
path: 'holdings',
|
|
component: HomeHoldingsComponent,
|
|
title: $localize`Holdings`
|
|
},
|
|
{
|
|
path: 'holdings',
|
|
component: HomeHoldingsComponent,
|
|
title: $localize`Holdings`
|
|
},
|
|
{
|
|
path: 'summary',
|
|
component: HomeSummaryComponent,
|
|
title: $localize`Summary`
|
|
},
|
|
{
|
|
path: 'market',
|
|
component: HomeMarketComponent,
|
|
title: $localize`Markets`
|
|
}
|
|
],
|
|
component: HomePageComponent,
|
|
path: ''
|
|
}
|
|
];
|
|
|
|
@NgModule({
|
|
imports: [RouterModule.forChild(routes)],
|
|
exports: [RouterModule]
|
|
})
|
|
export class HomePageRoutingModule {}
|