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

Add note on .sync camelCasing in documentation #8244

Closed
robertjk opened this issue May 24, 2018 · 1 comment
Closed

Add note on .sync camelCasing in documentation #8244

robertjk opened this issue May 24, 2018 · 1 comment

Comments

@robertjk
Copy link

robertjk commented May 24, 2018

What problem does this feature solve?

The problem is that the documentation on Custom Events: Event Names states:

we recommend you always use kebab-case for event names.

With .sync modifier you must emit event update:propertyName with propertyName camelCased. With kebab-case it won't work. So it's not always: more like always unless you emit event for .sync.

What does the proposed API look like?

You should add a note about that in Custom Events: Event Names.

Also in the documentation Custom Events: .sync modifier I would change the example to use a property with multiple word name (now it's a single word title, which doesn't help with this problem) and/or add a note about this event name incosistency with previous recommendation on the same page ("always use kebab case").

@LinusBorg
Copy link
Member

Sorry, this is still the wrong repository.

You are looking for this one:

https://github.com/vuejs/vuejs.org

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

2 participants