If im using firebase query How do I show a spinner when data is loading and get rid of it when its not loading. A nice demo would help. I dont seem to find anything in the docs.
<firebase-query
id="query"
path="/category"
data="{{viewcategory}}">
</firebase-query>
Like this query for example
and this dom-repeat
<template is="dom-repeat" items="[[viewcategory]]" strip-whitespace>
<div class="item">
<a class="image-link" href$="[[_getCategoryHref(item)]]">
<my-image src="[[item.profileimage]]" alt="[[item.name]]"></my-image>
</a>
<h2>[[item.name]]</h2>
<my-button>
<a aria-label$="[[item.name]] my Now" href$="[[_getCategoryHref(item)]]">VIEW</a>
</my-button>
</div>
</template>
How do I show the spinner before the items are loaded