0👍
You should defineExpose
in notification
component :
<script setup>
function show(){
console.log('working');
}
defineExpose({
show
})
</script>
or in normal script :
<script lang="ts">
export default{
methods:{
show(){
console.log('working');
}
},
expose: ['show'],
}
</script>
- [Vuejs]-How to set image src with alias in Vue3 + Vite
- [Vuejs]-When not to use a div container in a template?
Source:stackexchange.com