'How to get parent element+url from "parent" method in Vue 3 script setup?

Inside my vue component, I can call the parent method like so:

<script setup>
    console.log(parent)
</script>

which returns a ton of information. I haven't been able to find the parent component or url inside the data. Under which property can it be found? Does it exist?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source