vuejs / rfcs

RFCs for substantial changes / feature additions to Vue core
4.85k stars 549 forks source link

Introduce .bool modifier to v-bind #411

Open leopiccionia opened 2 years ago

leopiccionia commented 2 years ago

Summary

Introduce new syntax to simplify adding/removing boolean attributes:

Links


Important: Do NOT comment on this PR. Please use the discussion thread linked above to provide feedback, as it provides branched discussions that are easier to follow. This also makes the edit history of the PR clearer.

jfbrennan commented 1 year ago

Any further discussion or planning for this? Would like to know if it's moving forward and how I can help.

gund commented 1 year ago

Are you accepting PRs for this RFC? I already created a custom v-attr directive with a .bool modifier in one of the projects so I may be willing to contribute and adapt it.

EDIT: After looking at the v-bind implementation in Vue I realized that it's not implemented as a Vue directive but rather is embedded in a Vue compiler core as a transform which means that it's going to be impossible for me to contribute 😂