In our current project, we have implemented the vue-js-modal
plugin. I am facing a situation where I need to trigger a modal from code that is not within a Vue component. The official documentation only covers using the API inside a component. Is there a way to interact with vue-js-modal
from any part of the codebase?
To be specific, my problem is that I need to display a popup notification to the user whenever an error occurs in the router using router.onError((error)=>...)