I have a Vue application that displays videos. I am looking to automatically generate a random router link every time I click on:
<router-link to="/video/this_value_to_be_random">Random video</router-link>
Within the component:
<vue-video-background videoSrcMp4="path/to/your/video/file-this_value_to_be_random.mp4"></vue-video-background>
I want to pass this random value/number to this_value_to_be_random. The purpose is to display a different video in the same component each time the link is clicked, or a different video path with a random number between 1-5.
- path/to/your/video/file_v1.mp4
- path/to/your/video/file_v2.mp4
- path/to/your/video/file_v3.mp4