Search posts, tags, users, and pages
Embedding an independent component in a third party website. As a developer, we might come across a situation where we want to inject some component or an app (or a part of an app) in some external application. Such components are called widgets. W...
Shrey Tiwari
@Shrey2697 · India
Software Developer @ Geekyants
I ❤️ to create stuff that simplifies lives...
Markdown supported · ⌘↵ to post
James White
Could you explain why you’ve dynamically linked the script rather than just adding the link directly? I suppose it ensures that the script is in the head tag in case the widget is used just below that, but it feels odd.
Rishi for easyweb.dev
Where are you using vue here?
are you creating the widget in vue? or adding the widget to a vue app?
where is the vue instance ?
Vue is used in creating the widget.
James White
Could you explain why you’ve dynamically linked the script rather than just adding the link directly? I suppose it ensures that the script is in the head tag in case the widget is used just below that, but it feels odd.