How do I change index page content in Vuejs/Nuxt2?

Viewed 24

I'm currently calling my MainPage.vue from the components folder to appear in my index.vue by using the following.

<template>
  <div>
    <MainPage/>
  </div>
</template>

My question: How can I use a button click in the index page, to change the MainPage to another page. I'm basically running the site's navigation in the index, and I want to have the content change upon clicking a button.

1 Answers
Related