Explorer page with latest blocks. WIP

This commit is contained in:
Simon Lindh
2019-11-06 15:35:02 +08:00
parent f5abccd034
commit 839fa12eb6
22 changed files with 225 additions and 20 deletions

View File

@@ -0,0 +1,32 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ExplorerComponent } from './explorer/explorer.component';
import { TransactionComponent } from './transaction/transaction.component';
import { RouterModule, Routes } from '@angular/router';
import { SharedModule } from '../shared/shared.module';
import { BlockComponent } from './block/block.component';
const routes: Routes = [
{
path: '',
component: ExplorerComponent,
},
{
path: 'block/:id',
component: BlockComponent,
},
{
path: 'tx/:id',
component: TransactionComponent,
},
];
@NgModule({
declarations: [ExplorerComponent, TransactionComponent, BlockComponent],
imports: [
SharedModule,
CommonModule,
RouterModule.forChild(routes),
]
})
export class ExplorerModule { }