the great renaming
This commit is contained in:
14
src/app/api/food.store.ts
Normal file
14
src/app/api/food.store.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user