I have a unique component named button-widget
that has been globally registered.
Vue.component('button-widget', {
template: `<button>My Button</button>`
})
Now, I am wondering how I can permanently delete this component.
I do not want to just use v-if
or $destroy()
, I want to completely eradicate the existence of this component as if it was never defined in the first place. This way, when trying to use it, I would get the warning message:
Unknown custom element: <button-widget> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
.