Angular 4 / ngx-bootstrap BsModalService with Dynamic Injection

1.1k Views Asked by At

i'm using ngx-bootstrap with Angular 4 specific a ModalModule.

Scenario: I have three component Child extend from a Component Parent.

I'll try to inject BsModalService in the parent component using the constructor, but i received and Error message super() because is missing the BsModalService parameter.

How i cal solve it?

I tried to use ReflectiveInjector or the new StaticInjector or a simple new BsModalService but i could not figure out, how to get and pass the parameter ComponentLoaderFactory

Please, i need your help

0

There are 0 best solutions below