angularJS directive to show/hide loading icons