Daniel van Niekerk

Results 3 comments of Daniel van Niekerk

I have the same issue

I actually found the solution. Try this code: ``` var loadData = function () { var deferred = $q.defer(); $http.get('/api/data') .then(function (res) { $q.when(res).then(function () { deferred.resolve(res.data); }); }, function...

What I've done in the meantime is use ng-if or ng-show to hide the button if it shouldn't be clicked. Not ideal but it works at least.