[Vuejs]-Setting 'name' in input [Vue.js]

2👍

to put in layman’s terms.

this is when _charset_ is a variable which you have defined in data() or computed

  <input :name="_charset_" />

this is when _charset_ is a literal string.

<input name="_charset_" />

1👍

this is how you bind data in Vue:

<input :name="_charset_" />

that is the shortcut for

<input v-bind:name="_charset_" />

obviously there must be a property called _charset_

Leave a comment