Skip to Content

hasQueryParams Method

Determines whether the current route has defined query params

API

hasQueryParams(): boolean;

Example

import {routeGroup} from '@bitfiber/ng/rx'; // Creates a route group const route = routeGroup<{id: number; type: string}>({ initialParams: {id: 0, type: 'all'}, }); if (route.hasQueryParams()) { // Some logic }
Last updated on