I want to load a modal from a component. In Angular Material documentation is write to add the modal component in entryComponents :
This :
@NgModule
We had the same or a very similar issue with Angular Bootstrap and a modal popup. Our first finding was, that if we import the lazy loaded module into our app-moule the popup worked.
In the end, we had to
... add NgbModule to the imports of the @NgModule decorator of the module the popup was a part of,
although we have NgbModule already imported in the app-module and no import was missed by the compiler in the ts file of the popup component.
I hope this can help someone. Please be kind.