Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setPrefix in controller doesn't append a dot #360

Open
jastend opened this issue Jan 13, 2018 · 0 comments
Open

setPrefix in controller doesn't append a dot #360

jastend opened this issue Jan 13, 2018 · 0 comments

Comments

@jastend
Copy link

jastend commented Jan 13, 2018

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 jastend changed the title setPrefix in controller doesn't add a dot setPrefix in controller doesn't append a dot Jan 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant