Custom configuration is ignored when decorators are used
See original GitHub issueVersion: 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'
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:5 (1 by maintainers)
Top GitHub Comments
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.
@PillowPillow works like a charm 😃