output detail page

This commit is contained in:
root 2019-09-10 11:49:11 +05:30
parent ff4081dd08
commit d5ff72f4d2
7 changed files with 77 additions and 0 deletions

View File

@ -0,0 +1 @@
<p>output-detail works!</p>

View File

@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { OutputDetailComponent } from './output-detail.component';
describe('OutputDetailComponent', () => {
let component: OutputDetailComponent;
let fixture: ComponentFixture<OutputDetailComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ OutputDetailComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(OutputDetailComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-output-detail',
templateUrl: './output-detail.component.html',
styleUrls: ['./output-detail.component.css']
})
export class OutputDetailComponent implements OnInit {
constructor() { }
ngOnInit() {
}
}

View File

@ -0,0 +1,15 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { OutputDetailComponent } from './output-detail/output-detail.component';
const routes: Routes = [ {
path: '',
component: OutputDetailComponent,
},
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class OutputViewRoutingModule { }

View File

@ -0,0 +1,14 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { OutputViewRoutingModule } from './output-view-routing.module';
import { OutputDetailComponent } from './output-detail/output-detail.component';
@NgModule({
declarations: [OutputDetailComponent],
imports: [
CommonModule,
OutputViewRoutingModule
]
})
export class OutputViewModule { }

View File

@ -28,6 +28,13 @@ const siteRoutes: Routes = [
title: 'Epic Explorer - Block',
},
},
{
path: 'outputdetail/:hash',
loadChildren: './output-view/output-view.module#OutputViewModule',
data: {
title: 'Epic Explorer - Block',
},
},
{
path: 'chart',
loadChildren: './graph-view/graph-view.module#GraphViewModule',