I am new to angularjs and UI dev too and I have tried to implement a functionality of disabling the button on-click of it and showing a message on page e.g "In progress" and after 3 secs button should get enabled with a different message e.g "Completed".
Button is getting disabled on click but and not showing notification "In Progress"on-click instead showing notification "Complete"after 3 secs.
I have seen this similar kind of problem solved before in this forum but not able to figure out missing logic in my code ............kindly please help
MY HTML:
Analysis
In Progress CompleteController:
$scope.isDisabled=false;
$scope.showNotification=false;
$scope.isEnabled=true;
$scope.completeNotification=false;
$scope.showNext=function(){
$scope.isDisabled=true;
$scope.showNotification=true;
$scope.buttonWait();
$scope.buttonWait = function() {
$timeout($scope.isEnabled = true, $scope.showNotification = false, $scope.completeNotification = true, 3000);
}