[Vuejs]-Ionic Vue: Router Link isn’t working/doing anything

0👍

Vue Router renders the current paht’s component in the router-view component.

Include <router-view></router-view> where you want the content to render.

0👍

I got an answer somewhere else I’ll post here.
I didn’t include this in the script section.

components: {
**insert components here**
}

And that prevented it from working, so here’s the script section fixed

<script>
import { IonButton, IonList, IonItem } from "@ionic/vue";
import baseLayout from "@/components/base/baseLayout.vue"; (I exported this globally but I'll include it here anyway)
export default {
  components: {
    baseLayout,
    IonButton,
    IonList,
    IonItem,
  },
};

Leave a comment