2

On my page I have multiple divs that look like that:

<div v-show="currentPage == 1" class="row">
  ...
</div>
<div v-show="currentPage == 2" class="row">
  ...
</div>
<div v-show="currentPage == 3" class="row">
  ...
</div>

currentPage is a variable defined in the vue script. The value of currentPage could be changed by changing the value after # in the URL. Problem is that when the page is loaded, for a very brief moment, the content of all pages is displayed and then, only the content of the desired page remains. I would like to ask how I could eliminate the initial flashing of all the content when entering the page.

0 Answers0