The main page of my app can have any one of 4 states so instead of having 4 different divs and going through the whole show/hide process, I was thinking of using the template function in routes.
Having read the docs, I still couldn’t figure out how to do what I want.
Basically, I want to use an API and get back something like this:
<template>
<div class="stuff">
<div class="block block-strong text-align-center">
<div class="preloader"></div>
</div>
</div>
</template>
<script>
export stuffInit => {
// here I will do something witht the server
let user = null;
}
</script>