output detail page
This commit is contained in:
parent
ff4081dd08
commit
d5ff72f4d2
@ -0,0 +1 @@
|
||||
<p>output-detail works!</p>
|
@ -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();
|
||||
});
|
||||
});
|
@ -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() {
|
||||
}
|
||||
|
||||
}
|
15
src/app/view/output-view/output-view-routing.module.ts
Normal file
15
src/app/view/output-view/output-view-routing.module.ts
Normal 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 { }
|
14
src/app/view/output-view/output-view.module.ts
Normal file
14
src/app/view/output-view/output-view.module.ts
Normal 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 { }
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user