Skip to Content

fragment Property Readonly

A signal state that represents the route fragment

API

readonly fragment: SignalStateType<string | null>;

Example

import {routeGroup} from '@bitfiber/ng/rx'; // Provides a group of signal states for managing the route const route = routeGroup<{id: number; type: string}>({ initialParams: {id: 0, type: 'all'}, hasFragment: true, }, ({fragment}) => { fragment // Performs a tap callback each time the route fragment changes .tap(fragment => console.log(fragment)); });
Last updated on