Created
May 17, 2020 17:54
-
-
Save splincode/8010314d3997c0e98873420fc1162bdb to your computer and use it in GitHub Desktop.
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
// novels.state.ts | |
@State<Novel[]>({ | |
name: 'novels', | |
defaults: [] | |
}) | |
@Injectable() | |
export class NovelsState {} | |
// detectives.state.ts | |
@State<Detective[]>({ | |
name: 'detectives', | |
defaults: [] | |
}) | |
@Injectable() | |
export class DetectivesState {} | |
@NgModule({ | |
imports: [ | |
NgxsStoragePluginModule.forRoot({ | |
key: [NovelsState, DetectivesState] | |
}) | |
] | |
}) | |
export class AppModule {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment