-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
Closed
Description
Vue.js version
2.2.1
Reproduction Link
http://codepen.io/CodinCat/pen/Qpdrjq?editors=1010
What is Expected?
A warning.
What is actually happening?
The like above doesn't work correctly (at least, not most users expected) because it is passing aProp
in camelCase. Change the template code to :a-prop
can fix this problem.
But as you can see, there is no error message nor any warning. It just displays nothing. Sometimes this may make users spend hours to debug. Besides, There are a lot of questions on Stackoverflow because the camelCase and kebab-case problem.
I have to say I make this mistake sometimes, because I switch between React and Vue. If Vue can show a warning for this case would be very helpful.
Metadata
Metadata
Assignees
Labels
No labels