Chore: Upgrade to Angular v18
Chore: Upgrade to Python 3.12 Chore: Upgrade to psycopg3
This commit is contained in:
10
bookie/src/app/devices/device-list.resolver.ts
Normal file
10
bookie/src/app/devices/device-list.resolver.ts
Normal file
@ -0,0 +1,10 @@
|
||||
import { inject } from '@angular/core';
|
||||
import { ResolveFn } from '@angular/router';
|
||||
|
||||
import { Device } from '../core/device';
|
||||
|
||||
import { DeviceService } from './device.service';
|
||||
|
||||
export const deviceListResolver: ResolveFn<Device[]> = () => {
|
||||
return inject(DeviceService).list();
|
||||
};
|
||||
Reference in New Issue
Block a user