push stuff
This commit is contained in:
parent
08a8f464f3
commit
6e0b059241
4 changed files with 34 additions and 1 deletions
|
@ -1,5 +1,8 @@
|
||||||
|
// Push Notifications
|
||||||
|
import { ServiceWorkerModule } from '@angular/service-worker';
|
||||||
|
|
||||||
import { BrowserModule } from '@angular/platform-browser';
|
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 { LocationStrategy, HashLocationStrategy } from '@angular/common';
|
||||||
import { HttpClientModule } from '@angular/common/http';
|
import { HttpClientModule } from '@angular/common/http';
|
||||||
|
|
||||||
|
@ -38,6 +41,8 @@ import { P500Component } from './pages/500.component';
|
||||||
import { AuthModule } from './auth/auth.module';
|
import { AuthModule } from './auth/auth.module';
|
||||||
import { DashboardModule } from './dashboard/dashboard.module';
|
import { DashboardModule } from './dashboard/dashboard.module';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
BrowserModule,
|
BrowserModule,
|
||||||
|
@ -51,6 +56,7 @@ import { DashboardModule } from './dashboard/dashboard.module';
|
||||||
AppRoutingModule,
|
AppRoutingModule,
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
|
ServiceWorkerModule,
|
||||||
AppComponent,
|
AppComponent,
|
||||||
FullLayoutComponent,
|
FullLayoutComponent,
|
||||||
SimpleLayoutComponent,
|
SimpleLayoutComponent,
|
||||||
|
@ -76,6 +82,9 @@ import { DashboardModule } from './dashboard/dashboard.module';
|
||||||
useClass: HashLocationStrategy
|
useClass: HashLocationStrategy
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
schemas: [
|
||||||
|
CUSTOM_ELEMENTS_SCHEMA
|
||||||
|
],
|
||||||
bootstrap: [ AppComponent ]
|
bootstrap: [ AppComponent ]
|
||||||
})
|
})
|
||||||
export class AppModule { }
|
export class AppModule { }
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
<push></push>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="app-body">
|
<div class="app-body">
|
||||||
|
|
4
src/app/push/push.component.html
Normal file
4
src/app/push/push.component.html
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
<push-notification
|
||||||
|
title="hello"
|
||||||
|
body="hi">
|
||||||
|
</push-notification>
|
19
src/app/push/push.component.ts
Normal file
19
src/app/push/push.component.ts
Normal file
|
@ -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(){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Reference in a new issue