overview start

This commit is contained in:
insanity 2018-02-06 18:58:55 +09:00
parent 95e065511d
commit de34ec74c9
8 changed files with 76 additions and 1 deletions

View File

@ -49,7 +49,7 @@ export const menus = [
'sub': [
{
'name': 'Overview',
'link': '',
'link': '/overview',
'icon': 'indeterminate_check_box',
'chip': false,
'open': false,

View File

@ -0,0 +1,16 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { OverviewPageComponent } from 'app/pages/overview/overview-page.component';
const routes: Routes = [
{
path: '',
component: OverviewPageComponent,
}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class OverviewPageRoutingModule { }

View File

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

View File

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

View File

@ -0,0 +1,15 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { OverviewPageRoutingModule } from 'app/pages/overview/overview-page-routing.module';
import { OverviewPageComponent } from 'app/pages/overview/overview-page.component';
@NgModule({
imports: [
CommonModule,
OverviewPageRoutingModule
],
declarations: [
OverviewPageComponent
]
})
export class OverviewPageModule { }

View File

@ -15,6 +15,7 @@ const routes: Routes = [
{ path: 'map', loadChildren: './infra/infra-page.module#InfraPageModule' },
{ path: 'sensor-setting', loadChildren: './sensor-setting/sensor-setting-page.module#SensorSettingPageModule' },
{ path: 'target', loadChildren: './target/target-page.module#TargetPageModule' },
{ path: 'overview', loadChildren: './overview/overview-page.module#OverviewPageModule' },
]
}
];