[Vuejs]-Using Vue2, how to bind html element attribute to the property of a variable

3👍

Just don’t need to specify brackets. Just do this:

<td :colspan="columns.length">

See the Vue documentation for Template Syntax.

Leave a comment