Closed esanzgar closed 6 years ago
I'm having the same issue. It looks like something is wrong during the initialisation of this package. Default configurations been applied before custom configurations take effect.
+1 Also seeing this issue.
Can someone check my pull request for this issue?
fixed in dev, should be available with the next version tonight
@PillowPillow works like a charm :)
Version: ngx-webstorage@1.8.0
I have configured ngx-webstorage to use a custom prefix and separator.
Ng2Webstorage.forRoot({ prefix: 'my_custom', separator: '.', caseSensitive: true }),
When I use the decorator like this:
@LocalStorage('test') private i:string;
Actual result:ng2-webstorage|test = null
Expected result:my_custom.test = null
When I use the decorator like this:
@LocalStorage('test', 'hello') private i:string;
Actual result:ng2-webstorage|test = 'hello'
Expected result:my_custom.test = 'hello'
When I use the decorator like this:
@LocalStorage('test') private i:string = 'hello;
Actual result:ng2-webstorage|test = null my_custom.test = 'hello'
Expected result:my_custom.test = 'hello'