Skip to content

Conversation

rmpasswd
Copy link
Contributor

@rmpasswd rmpasswd commented Nov 10, 2024

a component registered as MyComponent can be referenced in the template via both <MyComponent> and <my-component>.

While learning about Vue components and navigating the PascalCase and kebab-case support between html and vue, I came across this line in the docs. IMO it is not initially clear what is meant here without having to write some components first and get idea.

Proposed Solution

Making it slightly more verbose to specify exactly where PascalCase components are allowed.

a component registered as MyComponent can be referenced inside a Vue template (or inside an HTML element rendered by Vue) via both <MyComponent> and <my-component>.

Copy link

netlify bot commented Nov 10, 2024

Deploy Preview for vuejs ready!

Name Link
🔨 Latest commit a6dc3b1
🔍 Latest deploy log https://app.netlify.com/sites/vuejs/deploys/67308d42288e590008b51e42
😎 Deploy Preview https://deploy-preview-3103--vuejs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@rmpasswd rmpasswd changed the title edited src/guide/components/registration.md file. More verbose for ne… docs: more specific mention of where PascalCase naming is allowed, in components/registration.md file. Nov 10, 2024
@NataliaTepluhina NataliaTepluhina merged commit 2b8fe6e into vuejs:main Dec 9, 2024
5 checks passed
szymonlicau referenced this pull request in vuejs-translations/docs-pl Dec 9, 2024
… components/registration.md file. (#3103)

edited src/guide/components/registration.md file. More verbose for new learners.
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