aboutsummaryrefslogtreecommitdiffstats
path: root/src/angular/notifications/container
diff options
context:
space:
mode:
Diffstat (limited to 'src/angular/notifications/container')
-rw-r--r--src/angular/notifications/container/notifcontainer.component.html.ts2
-rw-r--r--src/angular/notifications/container/notifcontainer.component.ts10
2 files changed, 5 insertions, 7 deletions
diff --git a/src/angular/notifications/container/notifcontainer.component.html.ts b/src/angular/notifications/container/notifcontainer.component.html.ts
index df08bb4..4073f47 100644
--- a/src/angular/notifications/container/notifcontainer.component.html.ts
+++ b/src/angular/notifications/container/notifcontainer.component.html.ts
@@ -1,4 +1,4 @@
-export default `
+export const template = `
<div id="containerid" class="sdc-notification-container ntns">
<sdc-notification *ngFor="let notif of notifications" [notificationSetting]="notif" (destroyComponent)="onDestroyed(notif)" >
</sdc-notification>
diff --git a/src/angular/notifications/container/notifcontainer.component.ts b/src/angular/notifications/container/notifcontainer.component.ts
index a922dc1..d2f7ad1 100644
--- a/src/angular/notifications/container/notifcontainer.component.ts
+++ b/src/angular/notifications/container/notifcontainer.component.ts
@@ -1,8 +1,7 @@
import { Component, Input, Output, EventEmitter, OnInit } from "@angular/core";
-import { CommonModule } from "@angular/common";
import { NotificationSettings } from "../utilities/notification.config";
import { NotificationsService } from "../services/notifications.service";
-import template from "./notifcontainer.component.html";
+import { template } from "./notifcontainer.component.html";
@Component({
selector: "sdc-notification-container",
@@ -14,14 +13,13 @@ export class NotificationContainerComponent implements OnInit {
constructor(private notify: NotificationsService) {
}
- public ngOnInit(){
- this.notify.subscribe( (notif : NotificationSettings) => {
+ public ngOnInit() {
+ this.notify.subscribe((notif: NotificationSettings) => {
this.notifications.push(notif);
});
}
-
- private onDestroyed = (event : any):void =>{
+ private onDestroyed = (event: any): void => {
let index: number = this.notifications.indexOf(event);
if (index !== -1) {
this.notifications.splice(index, 1);