Vue.js · Function
defineAsyncComponent
defineAsyncComponent lets Vue load a component only when it is rendered. It accepts a Promise-returning loader and can show loading or error components while loading.
Last updated
Syntax
function defineAsyncComponent(source: AsyncComponentLoader | AsyncComponentOptions): ComponentIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
ComponentAsyncComponentLoaderAsyncComponentOptionsloadingComponenterrorComponentSuspensenextTick()