Open pacoita opened 7 years ago
Which version do you use?
We don't really have such a wrapper class, but using 2.0.0 I am unable to notify from our AuthRestService
, which has NotificationsService
injected and calls:
this.notificationsService.error('Erreur', message);
We have no problem with injection, there is no error neither compiling nor when the statement runs, but no message displays, while it works when the same statement is in components.
I want to call the
NotificationsService
from a centralized location (Angular Service class), but when the NotificationsService is injected in the constructor class, I get the following error:I use angular-cli (1.0.0) that uses webpack:
app.module.ts
My service NotificationWrapService.ts
Am I importing it in a wrong way inside the service? If I call the
NotificationsService
directly inside a component, it works fine.