Saturday, December 05, 2015

Aurelia - a can't live without component

Obviously, I've got to show wait cursors while my backend code is running. Rather than write it a bunch of times, I built the tiniest of custom elements and I use it everywhere now:


    <i class="fa fa-circle-o-notch fa-spin fa-2x payrazr-blue"></i>


The class named color-class is used to pick the standard color of the spinner. No javascript behind this one, just an HTML-only component using Font Awesome.

1 comment:

Andrew said...

Certainly makes sense to have one of these! Can you elaborate a bit on how you implemented the view model, and how you handle the display in a parent page/component?