Skip to content

Instantly share code, notes, and snippets.

@teomanofficial
Last active November 16, 2023 18:09
Show Gist options
  • Save teomanofficial/ed12793c55bb16d4db3bd91e378e7bb4 to your computer and use it in GitHub Desktop.
Save teomanofficial/ed12793c55bb16d4db3bd91e378e7bb4 to your computer and use it in GitHub Desktop.
Angular NGXS - Store Module
import { isDevMode, NgModule } from "@angular/core";
import { NgxsModule } from "@ngxs/store";
import { NgxsReduxDevtoolsPluginModule } from "@ngxs/devtools-plugin";
@NgModule({
declarations: [],
imports: [
NgxsModule.forRoot([]),
NgxsReduxDevtoolsPluginModule.forRoot({
name: 'Teozon ECommerce Project',
maxAge: 50,
disabled: !isDevMode()
}),
]
})
export class StoreModule {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment