mirror of
https://github.com/directus/directus.git
synced 2026-02-01 09:05:01 -05:00
registerComponent
Registers a component into the global Vue context.
Usage
registerComponent('v-button', VButton);
Vue.component() vs registerComponent()
registerComponent internally calls Vue.component() directly, and doesn't do anything else. The
function is purely to extend the accepted TypeScript type for the second parameter. Vue accepts the
second parameter to be of type Component, yet it's Vue.component() function doesn't actually have
that type in it's definition.