overview start
This commit is contained in:
parent
95e065511d
commit
de34ec74c9
|
@ -49,7 +49,7 @@ export const menus = [
|
||||||
'sub': [
|
'sub': [
|
||||||
{
|
{
|
||||||
'name': 'Overview',
|
'name': 'Overview',
|
||||||
'link': '',
|
'link': '/overview',
|
||||||
'icon': 'indeterminate_check_box',
|
'icon': 'indeterminate_check_box',
|
||||||
'chip': false,
|
'chip': false,
|
||||||
'open': false,
|
'open': false,
|
||||||
|
|
16
src/app/pages/overview/overview-page-routing.module.ts
Normal file
16
src/app/pages/overview/overview-page-routing.module.ts
Normal 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 { }
|
3
src/app/pages/overview/overview-page.component.html
Normal file
3
src/app/pages/overview/overview-page.component.html
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
<p>
|
||||||
|
overview works!
|
||||||
|
</p>
|
0
src/app/pages/overview/overview-page.component.scss
Normal file
0
src/app/pages/overview/overview-page.component.scss
Normal file
25
src/app/pages/overview/overview-page.component.spec.ts
Normal file
25
src/app/pages/overview/overview-page.component.spec.ts
Normal 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();
|
||||||
|
});
|
||||||
|
});
|
15
src/app/pages/overview/overview-page.component.ts
Normal file
15
src/app/pages/overview/overview-page.component.ts
Normal 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() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
15
src/app/pages/overview/overview-page.module.ts
Normal file
15
src/app/pages/overview/overview-page.module.ts
Normal 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 { }
|
|
@ -15,6 +15,7 @@ const routes: Routes = [
|
||||||
{ path: 'map', loadChildren: './infra/infra-page.module#InfraPageModule' },
|
{ path: 'map', loadChildren: './infra/infra-page.module#InfraPageModule' },
|
||||||
{ path: 'sensor-setting', loadChildren: './sensor-setting/sensor-setting-page.module#SensorSettingPageModule' },
|
{ path: 'sensor-setting', loadChildren: './sensor-setting/sensor-setting-page.module#SensorSettingPageModule' },
|
||||||
{ path: 'target', loadChildren: './target/target-page.module#TargetPageModule' },
|
{ path: 'target', loadChildren: './target/target-page.module#TargetPageModule' },
|
||||||
|
{ path: 'overview', loadChildren: './overview/overview-page.module#OverviewPageModule' },
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user