angular - No component factory found for Component - component already added to NgModule -


i getting error when trying open modal component:

no component factory found [componentname].
did add @ngmodule.entrycomponents?

the same modal working elsewhere in app has been added declarations , entrycomponents sections of ngmodule.

is there else message mean?

most use dynamically loaded components dialog window. if case, need list them in entrycomponents property of @ngmodule, example:

  entrycomponents: [     mydialogcomponent   ] 

you can see example here: https://material.angular.io/components/dialog/overview


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -