Chore: Upgrade to Angular v18
Chore: Upgrade to Python 3.12 Chore: Upgrade to psycopg3
This commit is contained in:
10
bookie/src/app/sections/section-list.resolver.ts
Normal file
10
bookie/src/app/sections/section-list.resolver.ts
Normal file
@ -0,0 +1,10 @@
|
||||
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();
|
||||
};
|
||||
Reference in New Issue
Block a user