Explorer page with latest blocks. WIP
This commit is contained in:
32
frontend/src/app/explorer/explorer.module.ts
Normal file
32
frontend/src/app/explorer/explorer.module.ts
Normal 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 { }
|
||||
Reference in New Issue
Block a user