gitlab-org--gitlab-foss/app/assets/javascripts/issue_show/index.js

21 lines
564 B
JavaScript
Raw Normal View History

2017-04-05 21:13:06 -04:00
import Vue from 'vue';
import issuableApp from './components/app.vue';
2017-04-05 21:13:06 -04:00
import '../vue_shared/vue_resource_interceptor';
document.addEventListener('DOMContentLoaded', () => {
const initialDataEl = document.getElementById('js-issuable-app-initial-data');
const props = JSON.parse(initialDataEl.innerHTML.replace(/"/g, '"'));
return new Vue({
el: document.getElementById('js-issuable-app'),
components: {
issuableApp,
},
render(createElement) {
return createElement('issuable-app', {
props,
});
},
});
});