added infra map

This commit is contained in:
snoop 2018-01-30 16:37:35 +09:00
parent 0f3c81873d
commit dd84f626d2
11 changed files with 119 additions and 0 deletions

View File

@ -0,0 +1,3 @@
<p>
map works!
</p>

View File

@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { MapComponent } from './map.component';
describe('MapComponent', () => {
let component: MapComponent;
let fixture: ComponentFixture<MapComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ MapComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(MapComponent);
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: 'of-map',
templateUrl: './map.component.html',
styleUrls: ['./map.component.scss']
})
export class MapComponent implements OnInit {
constructor() { }
ngOnInit() {
}
}

View File

@ -0,0 +1,18 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { InfraPageComponent } from './infra-page.component';
const routes: Routes = [
{
path: '',
component: InfraPageComponent,
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class InfraPageRoutingModule { }

View File

@ -0,0 +1,3 @@
<p>
infra-page works!
</p>

View File

@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { InfraPageComponent } from './infra-page.component';
describe('InfraPageComponent', () => {
let component: InfraPageComponent;
let fixture: ComponentFixture<InfraPageComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ InfraPageComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(InfraPageComponent);
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: 'of-infra-page',
templateUrl: './infra-page.component.html',
styleUrls: ['./infra-page.component.scss']
})
export class InfraPageComponent implements OnInit {
constructor() { }
ngOnInit() {
}
}

View File

@ -0,0 +1,14 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { InfraPageComponent } from './infra-page.component';
import { InfraPageRoutingModule } from './infra-page-routing.module';
@NgModule({
imports: [
CommonModule,
InfraPageRoutingModule
],
declarations: [InfraPageComponent]
})
export class InfraPageModule { }

View File

@ -12,6 +12,7 @@ const routes: Routes = [
{ path: 'probes', loadChildren: './probes/probes-page.module#ProbesPageModule' },
{ path: 'discovery', loadChildren: './discovery/discovery.module#DiscoveryModule' },
{ path: 'map', loadChildren: './infra/infra-page.module#InfraPageModule' },
]
}
];