angular2-localstorage
angular2-localstorage copied to clipboard
how to use no prefix
Hi
I got this in my code:
@NgModule({
declarations: [
//...
],
imports: [
IonicModule.forRoot(MyApp),
LocalStorageModule.withConfig({
// prefix: 'MyApp',
storageType: 'localStorage'
})
],
but I still have a default prefix "ls".
Can you help me remove this ?
Thanks
@louisdoe: could you please post the component or service code where you are trying to use the decorator or storage service?
Also, are you sure you are in the right repo? The module for this package is named WebStorageModule, not LocalStorageModule and it does not support the .withConfig() method...