probe page

This commit is contained in:
insanity 2018-01-30 15:54:53 +09:00
parent 623952a796
commit 0f3c81873d
9 changed files with 76 additions and 2 deletions

View File

@ -27,7 +27,7 @@ export const menus = [
}, },
{ {
'name': 'Probes', 'name': 'Probes',
'link': '', 'link': '/probes',
'icon': 'indeterminate_check_box', 'icon': 'indeterminate_check_box',
'chip': false, 'chip': false,
'open': false, 'open': false,

View File

@ -9,6 +9,8 @@ const routes: Routes = [
children: [ children: [
{ path: '', redirectTo: 'home' }, { path: '', redirectTo: 'home' },
{ path: 'home', loadChildren: './home/home-page.module#HomePageModule' }, { path: 'home', loadChildren: './home/home-page.module#HomePageModule' },
{ path: 'probes', loadChildren: './probes/probes-page.module#ProbesPageModule' },
{ path: 'discovery', loadChildren: './discovery/discovery.module#DiscoveryModule' }, { path: 'discovery', loadChildren: './discovery/discovery.module#DiscoveryModule' },
] ]
} }

View File

@ -36,7 +36,7 @@ const DEFAULT_PERFECT_SCROLLBAR_CONFIG: PerfectScrollbarConfigInterface = {
HeaderComponent, HeaderComponent,
FooterComponent, FooterComponent,
MenuItemComponent, MenuItemComponent,
NotificationComponent NotificationComponent,
], ],
providers: [ providers: [
{ {

View File

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

View File

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

View File

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

View File

@ -0,0 +1,13 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { ProbesPageComponent } from './probes-page.component';
import { ProbesPageRoutingModule } from './probes-page-routing.module';
@NgModule({
imports: [
CommonModule,
ProbesPageRoutingModule,
],
declarations: [ProbesPageComponent]
})
export class ProbesPageModule {}