[Vuejs]-How can I create dynamic table with vue.js?

0๐Ÿ‘

โœ…

As @Usatei has pointed out, change:

   <tr v-for="(row, i) in this.rows" v-bind:key="i">
    <td v-for="(col,k)in this.cols" v-bind:key="k">

to:

   <tr v-for="(row, i) in rows" v-bind:key="i">
    <td v-for="(col,k)in cols" v-bind:key="k">

0๐Ÿ‘

Just try to remove the this from your html component, it should be ok.

Leave a comment