Files
forgotten-friends/src/app/api/food.store.ts
2026-02-26 15:33:24 +01:00

14 lines
341 B
TypeScript

import { Injectable } from "@angular/core";
import { Store } from "./store";
import { Food } from "../types/food";
import { db } from "../dexie/db";
@Injectable({ providedIn: 'root' })
export class FoodStore extends Store<Food[]> {
constructor() {
super(db.foods.toArray(), []);
}
public readonly foods = this.value;
}