gitlab-org--gitlab-foss/spec/javascripts/helpers/vue_mount_component_helper.js
2017-10-27 18:16:28 +01:00

8 lines
225 B
JavaScript

export const createComponentWithStore = (Component, store, propsData = {}) => new Component({
store,
propsData,
});
export default (Component, props = {}, el = null) => new Component({
propsData: props,
}).$mount(el);