Files
barker/bookie/src/app/sections/section-list.resolver.ts
Amritanshu 010e9a84db Chore: Upgrade to Angular v18
Chore: Upgrade to Python 3.12
Chore: Upgrade to psycopg3
2024-06-03 13:22:56 +05:30

11 lines
291 B
TypeScript

import { inject } from '@angular/core';
import { ResolveFn } from '@angular/router';
import { Section } from '../core/section';
import { SectionService } from './section.service';
export const sectionListResolver: ResolveFn<Section[]> = () => {
return inject(SectionService).list();
};