Attributes with character ':' #556
-
Let's say I have an input component, how could I enter the If I inform |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey @CleitonDeLima, the first format |
Beta Was this translation helpful? Give feedback.
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 tox-bind={"placeholder": "foo"}
.