vue-meta icon indicating copy to clipboard operation
vue-meta copied to clipboard

How to use this on vue 2 with vuetify?

Open Moanrisy opened this issue 3 years ago • 0 comments

This is my main.js

import Vue from "vue";
import VueMeta from "vue-meta";
import App from "./App.vue";
import vuetify from "./plugins/vuetify";

Vue.config.productionTip = false;

Vue.use(VueMeta, {
  // optional pluginOptions
  refreshOnceOnNavigation: true,
});

new Vue({
  vuetify,
  render: (h) => h(App),
}).$mount("#app");

and this is component where I'm gonna use pannellum.js

<script>
export default {
  name: "View360Mode",
  metaInfo: () => ({
    script: [
      {
        src: "https://cdn.jsdelivr.net/npm/[email protected]/build/pannellum.js",
        async: true,
        defer: true,
      },
    ],
  }),
};

pannellum.viewer("panorama", 

^ it keep saying pannellum is not defined

Moanrisy avatar Jul 30 '22 12:07 Moanrisy