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...

Markdown supported · ⌘↵ to post
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 ?
James White
Code
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.