I am using the ng-disabled directive to control when a button on my page can be clicked. Is it possible to control this via a timer? I would like the button to be disbaled until 5 seconds have elapsed. My HTML is currently:
<div ng-controller="ResetController">
<button ng-click="reset()">Reset</button>
</div>
<button ng-disabled="disabled"></button>and$timeout(function() { $scope.disabled = false }, 5000).