I'm running into issues trying to display the content of an HTML file within a Vue component. Essentially, I have a Django backend that generates an HTML file using Bokeh and backtesting.py library. On the frontend side, I'm utilizing Nuxt/Vue, which makes it challenging to dynamically load the HTML content onto the page.
If you'd like to view how the HTML file appears, you can check it out here:
The goal is to load the content from that HTML file in a basic Vue component:
<template>
<div>
<h1>Some content here</h1>
</div>
</template>
<script>
export default {
components: {
},
data() {
return {
}
},
mounted() {
},
methods: {
}
}
</script>
However, I've been struggling to figure out a solution. Simply copying and pasting the content into the Vue component results in numerous errors due to the use of <script>
tags within the component. I did try loading the BokehJS CDN in my index.html
file, but this still led to a Bokeh is undefined
error within the component.
If anyone has any advice or suggestions on how to resolve this issue, it would be greatly appreciated. Thank you!