Skip to content

feat: Open Page in Modal-Style #21477

@mariusbolik

Description

@mariusbolik

Feature Request

Ionic version:

[x] 5.x

Describe the Feature Request

The Idea is to use a modal globally in the app. Currently a modal depends on a specific page, can't be lazy loaded and the same modal can't be used on another page without copying it.
So the idea is to add an option to make it possible to let a page appear as a modal.

Describe Preferred Solution

Maybe a parameter that can be passed to the NavController.

await this.navController.navigateForward('/foo', {
    showAsModal: true
});

Describe Alternatives

Alternative is to use the ModalController, but it has some disadvantages like mentioned before.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions