resetUrl Method
Resets the current URL to the initial values of the route params, query params, and fragment
API
resetUrl(): void;
Example
import {routeGroup} from '@bitfiber/ng/rx';
// Creates a route group
const route = routeGroup<{id: number; type: string}>({
initialParams: {id: 0, type: 'all'},
});
// Initializes the group and all items within the group
route.initialize();
// Resets all states, such as the route params, query params and fragment to their initial values
route.resetUrl();
Last updated on