0👍
You could search for your component using the path in the router options.
const route = this.$router.options.routes.find(
(route) => !!route?.path?.includes("route/to/display")
)
this.component = route?.component;
And then display it using component
tag.
<component :is="component" />
- [Vuejs]-Is it normal to see all of this while installing Vue JS CLI?
- [Vuejs]-Vue 3 Overview & Detail view same router-link should be active
Source:stackexchange.com