fix(vue): correct passing of props and data to components (#17188)

This commit is contained in:
Michael Tintiuc
2019-02-28 19:17:49 +02:00
committed by Josh Thomas
parent fa4baf3541
commit 2ce49407b7

View File

@ -33,9 +33,7 @@ export class VueDelegate implements FrameworkDelegate {
// Get the Vue controller
return createVueComponent(this.vue, component).then((Component: VueConstructor) => {
const componentInstance = new Component({
propsData: opts
});
const componentInstance = new Component(opts);
componentInstance.$mount();
// Add any classes to the Vue component's root element