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.
Any attribute that is bound using v-bind
to a value that is null, undefined, or false will not be rendered in the element.