Skip to content

Instantly share code, notes, and snippets.

@cursosdesarrolloweb
Created July 27, 2020 09:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cursosdesarrolloweb/56f2c13281ae4a914833c2309d6c9d8a to your computer and use it in GitHub Desktop.
Save cursosdesarrolloweb/56f2c13281ae4a914833c2309d6c9d8a to your computer and use it in GitHub Desktop.
<template>
<Suspense>
<template #default>
<async-component />
</template>
<template #fallback>
Loading component....
</template>
</Suspense>
</template>
<script>
import AsyncComponent from "./AsyncComponent.vue";
export default {
name: 'RootComponent',
components: {AsyncComponent},
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment