-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp-routing.module.ts
47 lines (43 loc) · 2.1 KB
/
app-routing.module.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { LiveViewComponent } from './components/live-view/live-view.component';
import { TradingHistoryComponent } from './components/trading-history/trading-history.component';
import { ProfitPortfolioComponent } from './components/profit-portfolio/profit-portfolio.component';
import { CryptobotControlsComponent } from './components/cryptobot-controls/cryptobot-controls.component';
const appRoutes: Routes = [
{ path: '', redirectTo: '/live-view/BTC-USD', pathMatch: 'full' },
{ path: 'live-view', children: [
{ path: '', redirectTo: '/live-view/BTC-USD', pathMatch: 'full' },
{ path: 'BTC-USD', component: LiveViewComponent },
{ path: 'LTC-USD', component: LiveViewComponent },
{ path: 'ETH-USD', component: LiveViewComponent },
{ path: 'ALL', component: LiveViewComponent }
] },
{ path: 'trading-history', children: [
{ path: '', redirectTo: '/trading-history/BTC-USD', pathMatch: 'full' },
{ path: 'BTC-USD', component: TradingHistoryComponent },
{ path: 'LTC-USD', component: TradingHistoryComponent },
{ path: 'ETH-USD', component: TradingHistoryComponent },
{ path: 'ALL', component: TradingHistoryComponent }
] },
{ path: 'profit-portfolio', children: [
{ path: '', redirectTo: '/profit-portfolio/BTC-USD', pathMatch: 'full' },
{ path: 'BTC-USD', component: ProfitPortfolioComponent },
{ path: 'LTC-USD', component: ProfitPortfolioComponent },
{ path: 'ETH-USD', component: ProfitPortfolioComponent },
{ path: 'ALL', component: ProfitPortfolioComponent }
] },
{ path: 'cryptobot-controls', children: [
{ path: '', redirectTo: '/cryptobot-controls/BTC-USD', pathMatch: 'full' },
{ path: 'BTC-USD', component: CryptobotControlsComponent },
{ path: 'LTC-USD', component: CryptobotControlsComponent },
{ path: 'ETH-USD', component: CryptobotControlsComponent },
{ path: 'ALL', component: CryptobotControlsComponent }
] }
];
@NgModule({
imports: [RouterModule.forRoot(appRoutes)],
exports: [RouterModule]
})
export class AppRoutingModule {
}