vuematerial / vue-material

Vue.js Framework - ready-to-use Vue components with Material Design, free forever.
https://www.creative-tim.com/vuematerial
MIT License
9.88k stars 1.16k forks source link

Not able to bind data within <md-table> component #2216

Open hmqk1995 opened 4 years ago

hmqk1995 commented 4 years ago

I am not able to bind data into \<md-table> component . data using curly brackets will not update itself when data property of Vue component changes.

Reproduction: https://codepen.io/hmqk1995/pen/xxwJBYo

You can notice {{ selected }} within \<md-table-toolbar> is not updated even when the outside one reflected changes when clicking items.

tom-dorofeyev commented 4 years ago

a quick fix will be to use :

<template v-slot:md-table-toolbar>
         <md-table-toolbar>
           <h1 class="md-title">Selection Colors</h1> 
           {{ selected }}
         </md-table-toolbar>
</template>

hope this helps