Skip to content

Instantly share code, notes, and snippets.

@webmasterdevlin
Created July 28, 2019 13:08
Show Gist options
  • Save webmasterdevlin/31d87f337f5a628436b6dc5eef77745b to your computer and use it in GitHub Desktop.
Save webmasterdevlin/31d87f337f5a628436b6dc5eef77745b to your computer and use it in GitHub Desktop.
Akita Store: src/app/heroes/heroes.store.ts
import { EntityStore, StoreConfig } from '@datorama/akita';
import { HeroesState, HeroModel } from './hero.model';
import { Injectable } from '@angular/core';
@Injectable({ providedIn: 'root' })
@StoreConfig({ name: 'heroes' })
export class HeroesStore extends EntityStore<HeroesState, HeroModel> {
constructor() {
super();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment