How to use the @ngxs/storage-plugin.StorageOption.LocalStorage function in @ngxs/storage-plugin

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

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mflorence99 / el-3270 / renderer / app / module.ts View on Github external
bootstrap: [RootPageComponent],

  declarations: [
    ...COMPONENTS
  ],

  imports: [
    ...MODULES,
    NgxsModule.forRoot(states),
    NgxsLoggerPluginModule.forRoot({
      collapsed: false,
      logger: console
    }),
    NgxsStoragePluginModule.forRoot({
      key: ['prefs', 'layout', 'window'],
      storage: StorageOption.LocalStorage
    }),
    NgxsReduxDevtoolsPluginModule.forRoot({disabled: !window['DEV_MODE']}),
    RouterModule.forRoot(ROUTES, { enableTracing: false, useHash: true })
  ],

  providers: [
    ...SERVICES
  ]

})

export class EL3270Module { }
github mflorence99 / el-aws / renderer / app / module.ts View on Github external
collapsed: false,
      logger: console
    }),
    NgxsRouterPluginModule.forRoot(),
    NgxsStoragePluginModule.forRoot({
      key: [
        'ddbfilters', 
        'ddbschemas', 
        'ddbviews', 
        'prefs', 
        's3color', 
        's3filter', 
        's3view', 
        'window'
      ],
      storage: StorageOption.LocalStorage
    }),
    NgxsReduxDevtoolsPluginModule.forRoot({disabled: !window['DEV_MODE']}),
    RouterModule.forRoot(ROUTES, { enableTracing: false, useHash: true })
  ],

  providers: [
    ...SERVICES
  ]

})

export class ELAWSModule { }
github mflorence99 / el-term / renderer / app / module.ts View on Github external
...COMPONENTS
  ],

  imports: [
    ...MODULES,
    ContextMenuModule.forRoot({
      autoFocus: true
    }),
    NgxsModule.forRoot(states),
    NgxsLoggerPluginModule.forRoot({
      collapsed: false,
      logger: console
    }),
    NgxsStoragePluginModule.forRoot({
      key: ['layout', 'tabs', 'window'],
      storage: StorageOption.LocalStorage
    }),
    NgxsReduxDevtoolsPluginModule.forRoot({disabled: !window['DEV_MODE']})
  ],

  providers: [
    ...SERVICES
  ]

})

export class ELTermModule { }
github mflorence99 / el-file / renderer / app / module.ts View on Github external
...COMPONENTS
  ],

  imports: [
    ...MODULES,
    ContextMenuModule.forRoot({
      autoFocus: true
    }),
    NgxsModule.forRoot(states),
    NgxsLoggerPluginModule.forRoot({
      collapsed: false,
      logger: console
    }),
    NgxsStoragePluginModule.forRoot({
      key: ['fscolor', 'fslog', 'layout', 'prefs', 'views', 'window'],
      storage: StorageOption.LocalStorage
    }),
    NgxsReduxDevtoolsPluginModule.forRoot({disabled: !window['DEV_MODE']})
  ],

  providers: [
    ...SERVICES
  ]

})

export class ELFileModule { }

@ngxs/storage-plugin

extendable storage plugin for @ngxs/store

MIT
Latest version published 1 day ago

Package Health Score

92 / 100
Full package analysis