Skip to content

withComponentInputBinding allow binding to Route's title property #58384

@bederuijter

Description

@bederuijter

Which @angular/* package(s) are relevant/related to the feature request?

router

Description

It would be nice if withComponentInputBinding supports binding to the current route's title property via an input.

Proposed solution

Allow binding to the route's title property, similar to other supported properties.

readonly title = input.required<string>();

Alternatives considered

The current approach is by accessing the title property via the Route's snapshot.

readonly title = this.activedRoute.snapshot.title;

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions