Answer the question
In order to leave comments, you need to log in
How to see the completion of loading the progress bar?
I looked at options for creating bars in JS on the Internet and did not understand anything)
Therefore, I wrote my simple bicycle:
A component with a bar from bootstrap that takes data from props
<div class="progress">
<div class="progress-bar progress-bar-striped progress-bar-animated" role="progressbar" :aria-valuenow="this.progress" aria-valuemin="0" aria-valuemax="100" :style="'width: '+this.progress+'%'"></div>
</div>
<progress-component v-if="progress < 100"
:progress="progress"
>
</progress-component>
fetchMetod() {
this.progress = this.progress + 10
},
<div v-if="progress == 100”>
Контент
</div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question