vue-multiple/progress

Can not put percentage dynamically ( from db)

jaliyaL opened this issue · 2 comments

<template>
 <vm-progress 
    percentage="{{ percenTage}}"
    type="circle" 
    stroke-width="20"
    stroke-color="red" 
    stroke-linecap="square"
   width="180" 
    >
    </vm-progress> 
</template>

<script>
    import Progress from 'vue-multiple-progress'
    export default {
        data: function(){
          return {
               percenTage : 70
          }
        },
        components: {
            'vm-progress': Progress
        }
    }
</script>

I wanna get percenTage value from the database

@jaliyaL Change the way props percentage are passed in:

<template>
 <vm-progress 
    :percentage="percenTage"
    type="circle" 
    stroke-width="20"
    stroke-color="red" 
    stroke-linecap="square"
   width="180" 
    >
    </vm-progress> 
</template>

@savoygu wow, Thanks mate. Now works great.