<!-- component.html -->
<div wait-for="async-data">
This is a child element, should this be visible?
</div>
<div v-if="!$loadingAsyncData">
This is hidden correctly.
</div>
Edit: after reviewing the code, is it intended for the wait-for directive to only be used inside of a component tag? In that case, it would be impossible to use it in the context of vue-router, as vue-router is responsible for explicitly adding route components to the DOM.
Currently attempting to use
vue-async-data
and thewait-for
directive but it does not hide elements that are inside of avue-router
route component.Edit: after reviewing the code, is it intended for the
wait-for
directive to only be used inside of a component tag? In that case, it would be impossible to use it in the context ofvue-router
, asvue-router
is responsible for explicitly adding route components to the DOM.