I wanted to explore using the v-cloak directive to showcase a loading spinner while certain data properties in vue js are being loaded asynchronously for me to integrate into a table component.
After successfully applying and styling my v-cloak styles on the entire vue instance element
<div id="app"></div>
, I realized that my ideal scenario would be to have the v-cloak directive applied specifically to the MyTable component while it waits for the contacts data to load from the server. Instead of displaying an empty table, I want to show a loading indicator until the contacts populate.
Is there a way to achieve this? If so, what steps should I take?