Skip to content

Page component properties are missing in page-router-outlet #2385

Description

@mohammadrafigh

If I understand correctly, page-router-outlet creates Frame and Pages. Is there any way to set the Page properties in the template?
For example, androidStatusBarBackground or statusBarStyle as stated here.
I don't know if there are other ways to set these properties when using Angular, So I created this feature request to allow setting these properties through page-router-outlet or maybe using a built-in service.

Activity

  1. lostation commented on Aug 1, 2025

    @lostation

    Forget about it...You'd better go away from NS and try another tech stack...if it's an option...

  2. edusperoni commented on Aug 1, 2025

    @edusperoni
    Collaborator

    @mohammadrafigh you can inject(Page) in any component and it'll give you the nearest page. Then you can set the styling as you see fit. Same for frame.

  3. mohammadrafigh commented on Aug 2, 2025

    @mohammadrafigh
    Author

    @edusperoni Thanks for your suggestion, I've already thought about that but it doesn't make sense if I want to set a property for all Pages rendered using page-router-outlet. Consider I want to set a property globally. It's not a big deal to inject it as a workaround but it would be a bad practice if I want to do it on all page container components.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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