added notification page
This commit is contained in:
parent
e4e6a45238
commit
931daa3cda
|
@ -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 { }
|
|
@ -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>
|
|
@ -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();
|
||||
});
|
||||
});
|
14
src/app/pages/notification/notification-page.component.ts
Normal file
14
src/app/pages/notification/notification-page.component.ts
Normal 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() {
|
||||
}
|
||||
|
||||
}
|
19
src/app/pages/notification/notification-page.module.ts
Normal file
19
src/app/pages/notification/notification-page.module.ts
Normal 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 { }
|
|
@ -18,7 +18,7 @@ const routes: Routes = [
|
|||
// { path: 'target', loadChildren: './target/target-page.module#TargetPageModule' },
|
||||
{ path: 'overview', loadChildren: './overview/overview-page.module#OverviewPageModule' },
|
||||
{ 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: 'report', loadChildren: './report/report-page.module#ReportPageModule' },
|
||||
{ path: 'log', loadChildren: './log/log-page.module#LogPageModule' },
|
||||
|
|
Loading…
Reference in New Issue
Block a user