added notification page

This commit is contained in:
insanity 2018-04-19 19:54:08 +09:00
parent e4e6a45238
commit 931daa3cda
6 changed files with 84 additions and 1 deletions

View File

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

View File

@ -0,0 +1,9 @@
<div class="ui-fluid">
<div class="ui-g">
<div class="ui-g-12">
<div class="card no-margin">
<h1>Notification page</h1>
</div>
</div>
</div>
</div>

View File

@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { NotificationPageComponent } from './notification-page.component';
describe('OverviewComponent', () => {
let component: NotificationPageComponent;
let fixture: ComponentFixture<NotificationPageComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [NotificationPageComponent]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(NotificationPageComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@ -0,0 +1,14 @@
import { Component, OnInit, Inject } from '@angular/core';
@Component({
selector: 'of-page-notification',
templateUrl: './notification-page.component.html',
})
export class NotificationPageComponent implements OnInit {
constructor() { }
ngOnInit() {
}
}

View File

@ -0,0 +1,19 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { NotificationPageComponent } from './notification-page.component';
import { NotificationPageRoutingModule } from './notification-page-routing.module';
@NgModule({
imports: [
CommonModule,
FormsModule,
NotificationPageRoutingModule,
],
declarations: [
NotificationPageComponent,
]
})
export class NotificationPageModule { }

View File

@ -18,7 +18,7 @@ const routes: Routes = [
// { path: 'target', loadChildren: './target/target-page.module#TargetPageModule' }, // { path: 'target', loadChildren: './target/target-page.module#TargetPageModule' },
{ path: 'overview', loadChildren: './overview/overview-page.module#OverviewPageModule' }, { path: 'overview', loadChildren: './overview/overview-page.module#OverviewPageModule' },
{ path: 'dashboard', loadChildren: './dashboard/dashboard-page.module#DashboardPageModule' }, { path: 'dashboard', loadChildren: './dashboard/dashboard-page.module#DashboardPageModule' },
// { path: 'notification', loadChildren: './notification/notification-page.module#NotificationPageModule' }, { path: 'notification', loadChildren: './notification/notification-page.module#NotificationPageModule' },
{ path: 'alert', loadChildren: './alert/alert-page.module#AlertPageModule' }, { path: 'alert', loadChildren: './alert/alert-page.module#AlertPageModule' },
{ path: 'report', loadChildren: './report/report-page.module#ReportPageModule' }, { path: 'report', loadChildren: './report/report-page.module#ReportPageModule' },
{ path: 'log', loadChildren: './log/log-page.module#LogPageModule' }, { path: 'log', loadChildren: './log/log-page.module#LogPageModule' },