Vue.js: Don't render attributes if value is empty (e.g.: to="" or type="") Vue.js: Don't render attributes if value is empty (e.g.: to="" or type="") vue.js vue.js

Vue.js: Don't render attributes if value is empty (e.g.: to="" or type="")


Any attribute that is bound using v-bind to a value that is null, undefined, or false will not be rendered in the element.

Attributes and v-bind