following the DRY principal, i want to write a button directive which keeps button disabled for the duration of $http class.
I want to do this so as to forbid user from
I've prepared directive on plnkr which overrides default ngClick directive
ngClick
submit
and controller:
$scope.loadData = function($notify) { $timeout(function() { $notify && $notify(); }, 1000); }