I make progressbar of the user's referrals. As planned, if a user adds +1 referral, the progress bar is filled by %.
There is a finish number - 200. There is user.ref_num - the number of user referrals. So I'm trying to fill in the length of the progress bar, but something doesn't work.
My code:
<div class="progress-panel-progress">
<div class="progress-panel-progress__current" v-if="user.ref_num === 0" style="width: 0%;"> </div>
<div class="progress-panel-progress__current" v-if="user.ref_num > 0" :style="(200 - user.ref_num) / 200 * 100">
</div>
</div>
But when i check source code, then I don't see the attribute style= and progressbar doesn't fill.
Where can be a problem?