mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 02:31:34 +08:00
fix(vue): correct passing of props and data to components (#17188)
This commit is contained in:

committed by
Josh Thomas

parent
fa4baf3541
commit
2ce49407b7
@ -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
|
||||
|
Reference in New Issue
Block a user