-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
Closed
Description
What problem does this feature solve?
There's already a nice shorthand for true
props where you just add the prop name on its own, however there isn't an equivilent shorthand for false
props. Below are a couple suggestions for that shorthand that would make writing/reading these props easier I think. It's a pretty minor feature request, but I think it would add to the already amazing developer experience of using Vue.
What does the proposed API look like?
<component !prevent />
translates to <component :prevent="false" />
<component :not-prevent />
translates to <component :prevent="false" />
dsseng, theAlexPatin, AndrewBogdanovTSS and shaedrich
Metadata
Metadata
Assignees
Labels
No labels