[Vuejs]-Why does v-bind work differently for boolean attributes? Specifically, why does 0 evaluate as truthy?

0👍

It looks like, the defined strings for not include the button is defined by the vendor and the values are not the values, Javascript converts to a falsy value, because all values are strings and not own types, like in Javascript.

From documentation:

If isButtonDisabled has the value of null, undefined, or false, the disabled attribute will not even be included in the rendered <button> element.

Leave a comment