[Vuejs]-How to include external html in Nuxt app from object in js file with http url provided by bot constructor?

0👍

Your nuxt.config.js config is correct, but the first script src is not needed.

I’ve created a working example in this codesandbox, take a look at the code used in the index.vue file:

<template>
  <section>
    <div>
      <div id="myLandbot" style="width: 100vw; height: 100vh"></div>
    </div>
  </section>
</template>

<script>
export default {
  mounted() {
    var myLandbot = new LandbotFrameWidget({
      container: "#myLandbot",
      index: "https://landbot.io/u/H-117144-ZGUSSI5IM2OI5NYH/index.html"
    });
  }
};
</script>

Hope it helps!

Leave a comment