angular-react-lazy-loading icon indicating copy to clipboard operation
angular-react-lazy-loading copied to clipboard

How can we make our dialog / modal also in lazy loading?

Open GitHubish opened this issue 3 years ago • 0 comments

I found this tutorial very interesting and used it to make an application. My application uses MatDialog (Angular Material) and I have a lot of dialogs that can open no matter where you are. But I notice that I have a problem, all the modals are in fact loaded from the initialization of the application. I don't see how to have dialogs with progressive loading. Would you have an idea ?

I tried lazy loading with import('../../dialog/my-dialog.component') but the limitation seems to be that the services are not accessible. I'm totally stumped...

Thanks

GitHubish avatar Jan 24 '22 13:01 GitHubish