How to use the ngxs-reset-plugin.NgxsResetPluginModule.forRoot function in ngxs-reset-plugin

To help you get started, we’ve selected a few ngxs-reset-plugin examples, based on popular ways it is used in public projects.

github phucan1108 / letportal / src / web-portal / src / app / core / store.module.ts View on Github external
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { NgxsModule } from '@ngxs/store';
import { NgxsLoggerPluginModule } from '@ngxs/logger-plugin';
import { NgxsReduxDevtoolsPluginModule } from '@ngxs/devtools-plugin';
import { DEVTOOLS_REDUX_CONFIG, LOGGER_CONFIG, OPTIONS_CONFIG, STATES_MODULES } from './store.config';
import { NgxsResetPluginModule } from 'ngxs-reset-plugin';
import { CoreModule } from './core.module';

@NgModule({
  imports: [
    CommonModule,
    NgxsModule.forRoot(STATES_MODULES, OPTIONS_CONFIG),
    NgxsReduxDevtoolsPluginModule.forRoot(DEVTOOLS_REDUX_CONFIG),
    NgxsLoggerPluginModule.forRoot(LOGGER_CONFIG),
    NgxsResetPluginModule.forRoot()
  ],
  exports: [NgxsModule]
})
export class NgxsStoreModule {}

ngxs-reset-plugin

Reset plugin for NGXS: Effortlessly clears, resets, or overwrites NGXS states respecting the state tree.

MIT
Latest version published 9 months ago

Package Health Score

70 / 100
Full package analysis

Similar packages