Skip to content

Instantly share code, notes, and snippets.

@webmasterdevlin
Created July 28, 2019 13:16
Show Gist options
  • Save webmasterdevlin/379ea090c53ad0722233e774d1a6583e to your computer and use it in GitHub Desktop.
Save webmasterdevlin/379ea090c53ad0722233e774d1a6583e to your computer and use it in GitHub Desktop.
Akita Query: src/app/heroes/heroes.query.ts
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