gitlab-org--gitlab-foss/spec/javascripts/helpers/vue_mount_component_helper.js

9 lines
225 B
JavaScript
Raw Normal View History

2017-10-27 13:16:28 -04:00
export const createComponentWithStore = (Component, store, propsData = {}) => new Component({
store,
propsData,
});
export default (Component, props = {}, el = null) => new Component({
propsData: props,
}).$mount(el);