2021-11-05 14:12:21 -04:00
|
|
|
import Vue from 'vue';
|
2021-12-02 22:14:42 -05:00
|
|
|
import App from './components/app.vue';
|
2021-11-24 19:10:49 -05:00
|
|
|
|
2021-11-05 14:12:21 -04:00
|
|
|
export default () => {
|
2021-12-02 22:14:42 -05:00
|
|
|
const root = '#js-google-cloud';
|
|
|
|
const element = document.querySelector(root);
|
|
|
|
const { screen, ...attrs } = JSON.parse(element.getAttribute('data'));
|
|
|
|
return new Vue({
|
|
|
|
el: element,
|
|
|
|
render: (createElement) => createElement(App, { props: { screen }, attrs }),
|
|
|
|
});
|
2021-11-05 14:12:21 -04:00
|
|
|
};
|