Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
Is this legal in Vue?
<input :name="_charset_" />
Or should I do it like so:
<input name="_charset_" />
:name
_charset
name
_charset_
to put in layman's terms.
this is when _charset_ is a variable which you have defined in data() or computed
data()
computed
this is when _charset_ is a literal string.
Add a comment
this is how you bind data in Vue:
that is the shortcut for
<input v-bind:name="_charset_" />
obviously there must be a property called _charset_
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.
:nameactually binds the variable_charset's value to the attribute, whilenamesimply means setting_charset_as a string as the element's attribute.