I\'m using vuejs and I wanna know how to have control on inputs (add disabled attribute when necessary). Is there any way to add dynamically attribute in vuejs ? Below my
You can bind it to a variable using v-bind:disabled="foo" or :disabled="foo" for short:
v-bind:disabled="foo"
:disabled="foo"
Then in Vue you can just set this.myVar = true and it will disable the input.
this.myVar = true
Edit: add this to your template: