Mat-dialog: `no component factory found`. ComponentFactoryResolver not updating the list of factories when other module is loaded. #15822
What is the expected behavior?
No error should occur as in case with MatDialogModule.
But instead I get
What is the current behavior?
I use custom service to wrap my dialogs into custom component. Service has 'openModalWindow' method, which uses MatDialogService and which is used to dynamically create dialogs.
What are the steps to reproduce?
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular CLI: 7.3.8
Is there anything else we should know?
I'm not sure if it's an angular bug, trying to configure the custom dialog service provider correctly, so factory would combine all components.
Anyway, for some reasons ComponentFactoryResolver not updating the list of factories after other lazy modules are loaded.