Skip to content

Commit 6815202

Browse files
committed
revert: Reinject injector into service
Signed-off-by: Akshat Patel <[email protected]>
1 parent b042dc8 commit 6815202

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/notification/notification.service.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import {
44
Injectable,
55
OnDestroy,
66
NgZone,
7-
ViewContainerRef
7+
ViewContainerRef,
8+
Injector
89
} from "@angular/core";
910

1011
import { NotificationContent, ToastContent, ActionableContent } from "./notification-content.interface";
@@ -30,7 +31,11 @@ export class NotificationService implements OnDestroy {
3031
/**
3132
* Constructs Notification Service
3233
*/
33-
constructor(protected viewContainer: ViewContainerRef, protected ngZone: NgZone) {}
34+
constructor(
35+
protected injector: Injector,
36+
protected viewContainer: ViewContainerRef,
37+
protected ngZone: NgZone
38+
) {}
3439

3540
/**
3641
* Shows the notification based on the `notificationObj`.

0 commit comments

Comments
 (0)