Last active
September 21, 2018 04:19
-
-
Save mohanramphp/1a7918518620055ae56a585a1ecc09ed to your computer and use it in GitHub Desktop.
Student store declaration
This file contains 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
// 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