mempool/frontend/src/app/app-routing.module.ts

57 lines
1.3 KiB
TypeScript
Raw Normal View History

2019-07-21 17:59:47 +03:00
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { BlockchainComponent } from './blockchain/blockchain.component';
import { AboutComponent } from './about/about.component';
import { StatisticsComponent } from './statistics/statistics.component';
2019-07-27 18:43:17 +03:00
import { TelevisionComponent } from './television/television.component';
import { MasterPageComponent } from './master-page/master-page.component';
2019-07-21 17:59:47 +03:00
const routes: Routes = [
{
path: '',
2019-07-27 18:43:17 +03:00
component: MasterPageComponent,
children: [
{
path: '',
children: [],
component: BlockchainComponent
},
{
path: 'tx/:id',
children: [],
component: BlockchainComponent
},
{
path: 'about',
children: [],
component: AboutComponent
},
{
path: 'statistics',
component: StatisticsComponent,
},
{
path: 'graphs',
component: StatisticsComponent,
},
2019-11-06 15:35:02 +08:00
{
path: 'explorer',
loadChildren: './explorer/explorer.module#ExplorerModule',
},
2019-07-27 18:43:17 +03:00
],
2019-07-21 17:59:47 +03:00
},
{
2019-07-27 18:43:17 +03:00
path: 'tv',
component: TelevisionComponent,
2019-07-21 17:59:47 +03:00
},
{
path: '**',
redirectTo: ''
}
];
@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule]
})
export class AppRoutingModule { }