Skip to Content

hasParams Method

Determines whether the current route has defined params

API

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