Created
July 28, 2019 13:16
-
-
Save webmasterdevlin/379ea090c53ad0722233e774d1a6583e to your computer and use it in GitHub Desktop.
Akita Query: src/app/heroes/heroes.query.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Injectable } from '@angular/core'; | |
import { QueryEntity } from '@datorama/akita'; | |
import { HeroesStore } from './heroes.store'; | |
import { HeroesState, HeroModel } from './hero.model'; | |
@Injectable({ providedIn: 'root' }) | |
export class HeroesQuery extends QueryEntity<HeroesState, HeroModel> { | |
constructor(protected heroesStore: HeroesStore) { | |
super(heroesStore); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment