Skip to content

Instantly share code, notes, and snippets.

View MajesticPotatoe's full-sized avatar
🥔

Andrew Henry MajesticPotatoe

🥔
View GitHub Profile

Async calls

<template>
<!-- 
When isLoading is true, the <div> is in the DOM, the <p> is not.
When isLoading is false, Vue will remove the <div> and add the <p> to the DOM,
at which point <MyComponent> will be created and passed the fetched data.
-->