angular-local-storage icon indicating copy to clipboard operation
angular-local-storage copied to clipboard

setPrefix in controller doesn't append a dot

Open jastend opened this issue 7 years ago • 0 comments

Hi,

I'm not sure whether this is intended, but when setting a prefix in the controller instead of as a config definition, you have to manually set a dot at the end of the prefix.

Examples:

This will result in the prefix your-prefix.

.config(function (localStorageServiceProvider) {
  localStorageServiceProvider
	.setPrefix('your-prefix')
})´

This will result in the prefix your-prefix

.controller('example-controller', function (localStorageService) {
  localStorageService.setPrefix('your-prefix');
})

jastend avatar Jan 13 '18 01:01 jastend