Skip to content

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

Open
@GitHubish

Description

@GitHubish

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions