Skip to content

Introduce .bool modifier to v-bind#411

Open
leopiccionia wants to merge 1 commit intovuejs:masterfrom
leopiccionia:leopiccionia/bool-modifier
Open

Introduce .bool modifier to v-bind#411
leopiccionia wants to merge 1 commit intovuejs:masterfrom
leopiccionia:leopiccionia/bool-modifier

Conversation

@leopiccionia
Copy link
Copy Markdown

@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
Copy Markdown

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

@gund
Copy link
Copy Markdown

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