How to get component $options
via composition API?
#7960
Unanswered
trandaison
asked this question in
Help/Questions
Replies: 3 comments 4 replies
-
There's no public API for this. what's your use case? |
Beta Was this translation helpful? Give feedback.
0 replies
-
<script setup>
import { getCurrentInstance } from 'vue'
const i = getCurrentInstance()
console.log(i.proxy.$options)
</script>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
@LinusBorg I want to get the component name and the component path for a custom composable. I found that the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What problem does this feature solve?
With Options API, we can access the component options via
this.$options
, but with Composition API I don't see any documentation mentions about this?What does the proposed API look like?
n/a
Beta Was this translation helpful? Give feedback.
All reactions