Skip to content

Instantly share code, notes, and snippets.

@mohanramphp
Last active September 21, 2018 04:19
Show Gist options
  • Save mohanramphp/1a7918518620055ae56a585a1ecc09ed to your computer and use it in GitHub Desktop.
Save mohanramphp/1a7918518620055ae56a585a1ecc09ed to your computer and use it in GitHub Desktop.
Student store declaration
// student.store.ts
import { EntityState, EntityStore, StoreConfig } from '@datorama/akita';
import { Student } from './student.model';
export interface StudentState extends EntityState<Student> { }
@StoreConfig({
name: 'students'
})
export class StudentStore extends EntityStore<StudentState, Student> {
constructor() {
super();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment