Skip to Content

hasAnyParams Method

Determines whether the current route has defined params or query params

API

hasAnyParams(): 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.hasAnyParams()) { // Some logic }
Last updated on