Skip to content

How to add/remove boolean attribute to an element? #835

Answered by DmitrySharabin
GalinhaLX asked this question in Q&A
Discussion options

You must be logged in to vote

Hey there,

have you tried <input type="checkbox" checked="[true]" />? Actually, any expression that resolves to boolean will do. So, you don’t need mv-attr-* for this (by the way, it’s a work in progress and is not at the core yet).

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@GalinhaLX
Comment options

@DmitrySharabin
Comment options

@GalinhaLX
Comment options

Answer selected by GalinhaLX
Comment options

You must be logged in to vote
2 replies
@DmitrySharabin
Comment options

@GalinhaLX
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants