Skip to content

Use PascalCase for component registration #35

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

Merged
merged 1 commit into from
Feb 17, 2020
Merged

Use PascalCase for component registration #35

merged 1 commit into from
Feb 17, 2020

Conversation

sgarner
Copy link
Contributor

@sgarner sgarner commented Feb 13, 2020

This allows both <Recaptcha> and <recaptcha> to be used in templates.

Components that are registered in PascalCase can be used in templates with either PascalCase or kebab-case, whereas components registered in kebab-case can only be referenced in kebab-case. Some projects prefer to use PascalCase for component tags, so it's better for this plugin to make both options available.

See https://vuejs.org/v2/guide/components-registration.html#Name-Casing

This allows both `<Recaptcha>` and `<recaptcha>` to be used in templates.

Components that are registered in PascalCase can be used in templates with either PascalCase or kebab-case, whereas components registered in kebab-case can only be referenced in kebab-case. Some projects prefer to use PascalCase for component tags, so it's better for this plugin to make both options available.

See https://vuejs.org/v2/guide/components-registration.html#Name-Casing
@sgarner sgarner requested a review from mvrlin February 13, 2020 03:22
@mvrlin mvrlin merged commit 41de4a1 into nuxt-community:master Feb 17, 2020
@mvrlin
Copy link
Member

mvrlin commented Feb 17, 2020

Thank you for your PR 😊

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

Successfully merging this pull request may close these issues.

2 participants