Skip to content

Add support for passing state through nsRouterLink #2101

Open
@krunal-thakur

Description

@krunal-thakur

Is your feature request related to a problem? Please describe.
RouterExtensions supports passing state object as part of NavigationExtras but nsRouterLink directive does not accepts such input

Describe the solution you'd like
If nsRouterLink accepts state as input and then if its passed to extras then we can access this object in next route using CurrentNavigation().extras.state

Describe alternatives you've considered
Alternative is to always route programmatically using RouterExtensions as we have full control over NavigationExtras object.

Additional context
This is important for Passing Data between Routes using nsRouterLink

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions