Skip to Content

hasFragment Method

Determines whether the current route includes a fragment

API

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