Angular directive to disable a button upon making a  http call