params Property Readonly
A signal state that represents the route params
API
readonly params: SignalStateType<P>;
Example
import {routeGroup} from '@bitfiber/ng/rx';
// Provides a group of signal states for managing the route
const route = routeGroup<null, {id: number; type: string}>({
initialParams: {id: 0, type: 'all'},
}, ({params}) => {
params
// Performs a tap callback each time the route params change
.tap(data => console.log(data));
});