I want to reference a dom,
on a component, but print it out as undefined,. How to reference this
<template>
<div ref="a"></div>
<show :dom="$refs.a"/>
</template>
show.vue
export default {
name: "show",
props: {
dom: String,
params: Object,
},
mounted() {
console.log(".........",this.dom); //undefinde
},
};