[Vuejs]-VUEJS 2 Putting 2 props in one line

1πŸ‘

βœ…

in Vue, you can passing the variable as props with colon as prefix

in your case:

<el-table-column :prop="`${creator_name} ${creator_username})`" label="Founder"></el-table-column>

1πŸ‘

in Vue you have to put : before a property to dynamically assign value to it. in your case it should be

<el-table-column :prop="creator_name + creator_username" label="Founder"></el-table-column>

Leave a comment