diff options
Diffstat (limited to 'src/angular/notifications/container/notifcontainer.component.ts')
-rw-r--r-- | src/angular/notifications/container/notifcontainer.component.ts | 10 |
1 files changed, 4 insertions, 6 deletions
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); |