[Vuejs]-V-bind:class data bind doesn't set value in method

0๐Ÿ‘

โœ…

You are concatening '%' twice:

:style="{ width: percentage + '%' }"

and

_this.percentage = Math.floor(_this.downloaded / _this.total * 100) + ' %'

Do it only in one place and it will work fine.

Simplified JSFiddle concatening '%' in style only

0๐Ÿ‘

you have mention percentage as 0 may be thats why its not changing the width

Leave a comment