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

Introduce .bool modifier to v-bind #411

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

leopiccionia
Copy link

@leopiccionia leopiccionia commented Nov 3, 2021

Summary

Introduce new syntax to simplify adding/removing boolean attributes:

  • .bool modifier to v-bind
  • ?attr shorthand for v-bind:attr.bool

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
Copy link

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

@gund
Copy link

gund commented Sep 22, 2022

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 😂

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.

3 participants