am trying to create a dynamic component in a defined component as below :
main component ( should dynamically create the component extform-input when called )
...
components: {
'extform-input' : ExtformInput
},
methods : {
changeType: function () {
var self = this
var TheComponent = this.$options.components['extform-input'];
self.$addChild(TheComponent);
}
...
i get error self.$addChild is not a function
vm.$addChildis still in vue 1.0? I can't find it in the documentation.