Views: 2638
Last Modified: 28.04.2022

Vue 3 no longer has a global component in a classic sense.

Global registration has remained, but it registers component globally only within the application, but not for the site, as previously.

In such format, there are almost no specific advantages, with decreased visual clarity, compared to local components.

We recommend to consider the option of moving all your components to a local format.

Before:

import {Vue} from 'ui.vue';

Vue.component('component', {
	...
});

Now:

export const Component = {
	...
};

If you require global registration specifically, you can find more details on how to get it in the documentation.





Courses developed by Bitrix24