作者:全球时_尚热门焦点吧 | 来源:互联网 | 2023-09-17 13:29
A potential way to address #2356. The issue with using
and trying to show a component from a lazy loaded module is that the
created from
can only resolve components from the root injector and not from within the child injector. If the lazy loaded module provides its own
, it will receive a
1
| ComponentFactoryResolver |
/
that can properly resolve the lazy loaded module's entryComponents, providers, etc.
Another options would be to supply the
1
| ComponentFactoryResolver |
directly instead of the
but I think ultimately there is more flexibility in this approach.
该提问来源于开源项目:valor-software/ngx-bootstrap
Thanks for PR
But it doesn't fix an issue, just adds workaround
IMHO you can add
in
of lazy loaded module and it will work as a hack for now
Hint: Good fix would be converting BsModalService into
, but it will require on more service - to handle nested modal loading.
Thanks again