1👍
✅
I think you missed the <router-view></router-view>
in your parent template (in test.vue
). Router view is where the child component gets rendered. i.e.
<template>
<div>
<h1>Test</h1>
<button v-on:click="navigateTo('/test/p1')">p1</button>
<router-view></router-view>
</div>
</template>
- [Vuejs]-Using Vuex state in computed property to open modal, changes are ignored, modal stays closed
Source:stackexchange.com