Skip to content

[Feature] Provide a way to replace the default 'Page' with a custom instance #394

@VladimirAmiorkov

Description

@VladimirAmiorkov

Hi,

It would be great if there is a way to change the way nativescript-angular's bootstrap creates the Page instances used though the application life circle. I looked though the code and noticed there is a provider (defaultPageProvider) for the Page elements (not exactly sure how it is utilized as removing it in my fork did not break any navigation) and couple of places where the new Page is being created (for example here and here)

Having the possibility of placing our own class which inherits the Page class in an Angular 2 {N} application will be very useful and as it is already possible in vanilla {N} I think it will make migrating to Angular even easier and better.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions