diff --git a/src/app/view/output-view/output-detail/output-detail.component.css b/src/app/view/output-view/output-detail/output-detail.component.css new file mode 100644 index 0000000..e69de29 diff --git a/src/app/view/output-view/output-detail/output-detail.component.html b/src/app/view/output-view/output-detail/output-detail.component.html new file mode 100644 index 0000000..ecc9320 --- /dev/null +++ b/src/app/view/output-view/output-detail/output-detail.component.html @@ -0,0 +1 @@ +

output-detail works!

diff --git a/src/app/view/output-view/output-detail/output-detail.component.spec.ts b/src/app/view/output-view/output-detail/output-detail.component.spec.ts new file mode 100644 index 0000000..084183e --- /dev/null +++ b/src/app/view/output-view/output-detail/output-detail.component.spec.ts @@ -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; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ OutputDetailComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(OutputDetailComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/view/output-view/output-detail/output-detail.component.ts b/src/app/view/output-view/output-detail/output-detail.component.ts new file mode 100644 index 0000000..17345e4 --- /dev/null +++ b/src/app/view/output-view/output-detail/output-detail.component.ts @@ -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() { + } + +} diff --git a/src/app/view/output-view/output-view-routing.module.ts b/src/app/view/output-view/output-view-routing.module.ts new file mode 100644 index 0000000..931f316 --- /dev/null +++ b/src/app/view/output-view/output-view-routing.module.ts @@ -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 { } diff --git a/src/app/view/output-view/output-view.module.ts b/src/app/view/output-view/output-view.module.ts new file mode 100644 index 0000000..24654ff --- /dev/null +++ b/src/app/view/output-view/output-view.module.ts @@ -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 { } diff --git a/src/app/view/view-routing.module.ts b/src/app/view/view-routing.module.ts index 6f47895..485e973 100755 --- a/src/app/view/view-routing.module.ts +++ b/src/app/view/view-routing.module.ts @@ -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',