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
Post a Comment