Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 26x 26x 26x 26x 26x 13x 13x 13x | import { inject } from '@angular/core'; import { Store } from '@ngrx/store'; import { Observable, of } from 'rxjs'; import { loadCostCenters } from '../store/cost-centers'; /** * Fetch cost centers for cost center management page */ export function fetchCostCentersGuard(): boolean | Observable<boolean> { const store = inject(Store); store.dispatch(loadCostCenters()); return of(true); } |