Loading button directive for AngularJS