Я создал компонент в экземпляре vue.Как создать динамический компонент динамически
components: {
plan: {
template: "#suggested-properties",
props: ['plan', 'active'],
computed: {
isActive: function(){
return this.plan.name == this.active.name;
}
},
methods: {
setActivePlan: function(){
var that = this;
that.activeParameter= true;
this.active = this.plan;
}
}
}
}
Есть ли способ я могу динамически создать экземпляр тех же компонентов, передавая данные, когда я нажимаю на кнопку?