RouterInstance
The RouterInstance
object is an instance of the router, providing methods to navigate and manipulate the browser history.
back
back(): void;
Go back to the previous page.
forward
forward(): void;
Go forward to the next page.
push
push(href: string, options?: NavigateOptions): void;
Navigate to the given URL.
replace
replace(href: string, options?: NavigateOptions): void;
Replace the current URL with the given URL.