The Widget is designed to be placed in a normal webpage, not to be dynamically rendered via JavaScript after the fact.
So your query has nothing to do with this forum. I suggest using a forum dedicated to Vue instead.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello,
I'm trying to embed MQL5 Widget to my website. I read the instruction and wrap the code to run on my front-end library (Vue 2)
The instruction link: https://www.mql5.com/en/economic-calendar/widgets
However, when the component is mounted or when I change route, the widget doesn't load. Only when I reload the whole page I can see the widget. I need the widget to load every time the component is mounted without having to reload page. Please help me with this.
Here is the code in main.js :
Here is the code in component:
</script>
Thank you