From 6e0b0592415246b267f0baf9ea41799e5b36fcc9 Mon Sep 17 00:00:00 2001 From: Unknown Date: Fri, 19 Jan 2018 13:39:54 +0000 Subject: [PATCH] push stuff --- src/app/app.module.ts | 11 ++++++++++- src/app/layouts/full-layout.component.html | 1 + src/app/push/push.component.html | 4 ++++ src/app/push/push.component.ts | 19 +++++++++++++++++++ 4 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 src/app/push/push.component.html create mode 100644 src/app/push/push.component.ts diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 0f257e7..344f26c 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -1,5 +1,8 @@ +// Push Notifications +import { ServiceWorkerModule } from '@angular/service-worker'; + import { BrowserModule } from '@angular/platform-browser'; -import { NgModule } from '@angular/core'; +import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; import { LocationStrategy, HashLocationStrategy } from '@angular/common'; import { HttpClientModule } from '@angular/common/http'; @@ -38,6 +41,8 @@ import { P500Component } from './pages/500.component'; import { AuthModule } from './auth/auth.module'; import { DashboardModule } from './dashboard/dashboard.module'; + + @NgModule({ imports: [ BrowserModule, @@ -51,6 +56,7 @@ import { DashboardModule } from './dashboard/dashboard.module'; AppRoutingModule, ], declarations: [ + ServiceWorkerModule, AppComponent, FullLayoutComponent, SimpleLayoutComponent, @@ -76,6 +82,9 @@ import { DashboardModule } from './dashboard/dashboard.module'; useClass: HashLocationStrategy } ], + schemas: [ + CUSTOM_ELEMENTS_SCHEMA + ], bootstrap: [ AppComponent ] }) export class AppModule { } diff --git a/src/app/layouts/full-layout.component.html b/src/app/layouts/full-layout.component.html index 8a205f9..1c7a0fb 100644 --- a/src/app/layouts/full-layout.component.html +++ b/src/app/layouts/full-layout.component.html @@ -19,6 +19,7 @@ +
diff --git a/src/app/push/push.component.html b/src/app/push/push.component.html new file mode 100644 index 0000000..c9df174 --- /dev/null +++ b/src/app/push/push.component.html @@ -0,0 +1,4 @@ + + diff --git a/src/app/push/push.component.ts b/src/app/push/push.component.ts new file mode 100644 index 0000000..b5961ff --- /dev/null +++ b/src/app/push/push.component.ts @@ -0,0 +1,19 @@ +import { Component, OnInit} from '@angular/core' +import { PushNotificationComponent } from 'ng2-notifications/ng2-notifications'; + +@Component({ + selector: 'push', + templateUrl: './push.component.html', + + }) + + +export class PushComponent { + + constructor(){} + + ngOnInit(){ + + } + +}