Saturday, 5 September 2020

Inject Service In Extendable Class Typescript

I am aware of DI injection pattern in angular but now I am implementing Nebular so the class needs to be extend , hence unable to use constructor in this case (given that have never worked with super calls)

enter image description here

The issue is

this.authenticationService

is null despite of adding in provider.

Please help me solve this or let me know how to inject service in this case without a constructor.



from Inject Service In Extendable Class Typescript

No comments:

Post a Comment