gitlab-org--gitlab-foss/app/assets/javascripts/blob/notebook/index.js

18 lines
355 B
JavaScript
Raw Normal View History

2017-03-23 08:37:24 -04:00
import Vue from 'vue';
import NotebookViewer from './notebook_viewer.vue';
2017-03-23 08:37:24 -04:00
export default () => {
const el = document.getElementById('js-notebook-viewer');
return new Vue({
2017-03-23 08:37:24 -04:00
el,
render(createElement) {
return createElement(NotebookViewer, {
props: {
endpoint: el.dataset.endpoint,
},
});
},
2017-03-23 08:37:24 -04:00
});
};