X Tutup
Skip to content

Router.navigate should have an overload that accepts the tuple #4040

@johnpapa

Description

@johnpapa

Currently router.navigate() only accepts a url as a string, like this

this._router.navigate(``${ROUTES.detail}/${this.currentHero.id}``);

This works, but it would be great to be able to pass the tuple to it like this as another option:

this._router.navigate([ROUTES.detail, {id: this.currentHero.id}]);

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    X Tutup