ngx-bootstrap icon indicating copy to clipboard operation
ngx-bootstrap copied to clipboard

Cannot create a modal with component using BsModalService

Open MostafaAbdlrazek opened this issue 9 years ago • 1 comments

When i try to create a modal with component like the example in the demo, the window got dimmed and nothing appear.

Plunkr Link: https://plnkr.co/edit/SpvKZRFrIGpTa8mZXUBN

ngx-bootstrap: 1.9.3

Angular: 4

Bootstrap: 3.3.7

MostafaAbdlrazek avatar Oct 11 '17 11:10 MostafaAbdlrazek

Hi! Take a look at console error: Error: No component factory found for ModalContentComponent. Did you add it to @NgModule.entryComponents? As we mentioned in demo, component which you pass as a modal content should be added to entryComponents of your @NgModule.

Here's fixed plunkr https://plnkr.co/edit/yEmY51Y6dwc5opJyvYn4?p=preview

IlyaSurmay avatar Oct 11 '17 13:10 IlyaSurmay