Skip to content

RouterLinkActive: Handle undefined/null #66233

@davidbusuttil

Description

@davidbusuttil

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

router

Description

RouterLinkActive and some of its inputs do not handle undefined or null.

Proposed solution

RouterLink deactivates when null or undefined is passed. This is also handled in its other inputs: fragment, queryParams, queryParamsHandling, etc.

The same should be true for RouterLinkActive and by extension to its inputs: routerLinkActiveOptions, etc.

Alternatives considered

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: routerfeatureIssue that requests a new featurerouter: directivesRouterLink, RouterLinkActive, RouterOutlet etc.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions