Ngx-bootstrap: Cannot create a modal with component using BsModalService

Created on 11 Oct 2017  路  1Comment  路  Source: valor-software/ngx-bootstrap

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

comp(modal)

Most helpful comment

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

>All comments

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

Was this page helpful?
0 / 5 - 0 ratings