Click in order · Vue.js course · Module 8: Slots & Dynamic Components
Async component with options
Arrange the code for defineAsyncComponent with loadingComponent and errorComponent:
Items to click
- defineAsyncComponent({
- })
- errorComponent: ErrorDisplay,
- loadingComponent: Spinner,
- delay: 200
- loader: () => import('./Heavy.vue'),
You can check the correct answer by solving this task in the CodeWorlds game.