Custom directive for a simple angular loading spinner