scinote-web/app/javascript/packs/vue/my_module_show.js
2025-08-27 11:32:26 +02:00

11 lines
403 B
JavaScript

import { createApp } from 'vue/dist/vue.esm-bundler.js';
import MyModuleShow from '../../vue/my_module/show.vue';
import { mountWithTurbolinks } from './helpers/turbolinks.js';
const app = createApp();
app.component('MyModuleShow', MyModuleShow);
app.config.globalProperties.i18n = window.I18n;
window.myModuleShow = mountWithTurbolinks(app, '#myModuleShow', () => {
delete window.myModuleShow;
});