You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MdlDialogModule imports the MdlDialogOutletModule with forRoot. This causes issues when a lazy loaded component contains dialogs, when using a <dialog-outlet> on a parent that isn't lazy loaded, the outlet cannot be found. I would suggest adding the MdlDialogOutletService directly to the to the MdlDialogModule's forRoot function instead of calling forRoot on the MdlDialogOutletModule import. Unless there's a better pattern to follow.
Note: The error is currently resolved by importing MdlDialogModule with .forRoot() on both the main app module and the lazily loaded module, but this feels like an anti-pattern.
The text was updated successfully, but these errors were encountered:
Hello 😄 ,
MdlDialogModule imports the MdlDialogOutletModule with forRoot. This causes issues when a lazy loaded component contains dialogs, when using a
<dialog-outlet>
on a parent that isn't lazy loaded, the outlet cannot be found. I would suggest adding the MdlDialogOutletService directly to the to the MdlDialogModule's forRoot function instead of calling forRoot on the MdlDialogOutletModule import. Unless there's a better pattern to follow.Note: The error is currently resolved by importing MdlDialogModule with .forRoot() on both the main app module and the lazily loaded module, but this feels like an anti-pattern.
The text was updated successfully, but these errors were encountered: