Is it possible to dynamically add HTML content from the database in order to externally change a portion of the page's content?
Additionally, how can SCSS styling be incorporated into this? I am currently utilizing v-html, like so, but struggling with adding the style:
<div v-html="ct"></div>
async created() {
this.ct = await this.getPage("blabla");
}
I would prefer not to include the SCSS portion within the vuejs style block. I already have some other CSS for another part of the code, though if necessary, the style could be defined in the assets folder.
<style lang="scss" scoped>
@import '~assets/styles/core';
</style>
While searching for solutions, I found some leads but they don't seem to address importing styles from an external source: Vue.js style v-html with scoped css or Add CSS style to v-html