Open mbaljeetsingh opened 4 weeks ago
I'm trying to use toast component inside the custom directive. But, I get following error,
Is there a way to resolve this
For now, I'm using browser alert to show the message, but I want to use Toast component.
https://stackblitz.com/edit/hmfrv9?file=src%2Fdirectives%2Fpermission.js,src%2Fmain.js,src%2FApp.vue
3.43.0
3.x
ALL
Vue CLI App
No response
There should be a way to access toast globally from anywhere in the app.
The issue is still present with primevue v4
https://stackblitz.com/edit/wc1hhz?file=src%2Fdirectives%2Fpermission.js,src%2Fmain.js,src%2FApp.vue
Describe the bug
I'm trying to use toast component inside the custom directive. But, I get following error,
Is there a way to resolve this
For now, I'm using browser alert to show the message, but I want to use Toast component.
Reproducer
https://stackblitz.com/edit/hmfrv9?file=src%2Fdirectives%2Fpermission.js,src%2Fmain.js,src%2FApp.vue
PrimeVue version
3.43.0
Vue version
3.x
Language
ALL
Build / Runtime
Vue CLI App
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
There should be a way to access toast globally from anywhere in the app.