Skip to content

Attributes with character ':' #556

Closed Answered by JuroOravec
CleitonDeLima asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @CleitonDeLima, the first format :placeholder="foo" should work. The input is converted to a dict only if there is a prefix before the :. But if the key starts with :, so :placeholder="foo", this would remain unchanged. On the other hand, x-bind:placeholder="foo" would be converted to x-bind={"placeholder": "foo"}.

Replies: 1 comment 2 replies

Comment options

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

@JuroOravec
Comment options

Answer selected by JuroOravec
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