1
0
Fork 0
mirror of https://github.com/YunoHost/doc.git synced 2024-09-03 20:06:26 +02:00
doc/dev/plugins/flex-objects/app/list/index.js

19 lines
404 B
JavaScript

import Vue from 'vue';
import VueEvents from 'vue-events';
import App from './App.vue';
Vue.use(VueEvents);
const ID = '#flex-objects-list';
const element = document.querySelector(ID);
if (element) {
const initialStore = element.dataset.initialStore;
new Vue({ // eslint-disable-line no-new
el: ID,
render: h => h(App, {
props: {initialStore}
})
});
}