shlomiassaf / ngx-modialog

Modal / Dialog for Angular
http://shlomiassaf.github.io/ngx-modialog
MIT License
686 stars 242 forks source link

Error in custom modal example with RC.6 #183

Closed hpop closed 8 years ago

hpop commented 8 years ago
Error: Component CustomModal is not part of any NgModule or the module has not been imported into your module.

The same is happening in my current project.

hpop commented 8 years ago

Adding CustomModal to the declaration array actually helps.

shlomiassaf commented 8 years ago

Fixed in plunker.

andfs commented 8 years ago

This error still ocurr in the final angular release 2.0.0 I put the ModalModule.forRoot() and get the error. If I declare my modal, angular doesn´t find him.

ravtakhar commented 7 years ago

Using 2.4 and this is still occurring for me as well.

AsmaGargouri commented 7 years ago

@hpop , this works thanks