Chore: Upgrade to Angular v18
Chore: Upgrade to Python 3.12 Chore: Upgrade to psycopg3
This commit is contained in:
11
bookie/src/app/tables/table.resolver.ts
Normal file
11
bookie/src/app/tables/table.resolver.ts
Normal file
@ -0,0 +1,11 @@
|
||||
import { inject } from '@angular/core';
|
||||
import { ResolveFn } from '@angular/router';
|
||||
|
||||
import { Table } from '../core/table';
|
||||
|
||||
import { TableService } from './table.service';
|
||||
|
||||
export const tableResolver: ResolveFn<Table> = (route) => {
|
||||
const id = route.paramMap.get('id');
|
||||
return inject(TableService).get(id);
|
||||
};
|
||||
Reference in New Issue
Block a user