How to get installed components information #6447
siddharth223437
started this conversation in
General Discussions
Replies: 1 comment
-
<script setup lang="ts">
import { getCurrentInstance } from "vue";
const instance = getCurrentInstance();
console.log(instance?.appContext.components);
</script> https://vuejs.org/api/application.html#app-component |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In vue 2, i was using
Vue.options._base.options.components
what is the alternative to this in vue 3 with composition api ?Beta Was this translation helpful? Give feedback.
All reactions