cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

How do I add a simple 10 second delay after a button is pressed?

SOLVED
Highlighted

How do I add a simple 10 second delay after a button is pressed?

This is what i have tried:


$scope.step2=function() {

      pause(10000);

      $scope.view.wdg['bar-sm']['visible']=false;

     }


The script stops after pause, but does not move to next command

Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions

Re: How do I add a simple 10 second delay after a button is pressed?

You can use $timeout to achieve this. Check out the AngularJS documentation for more information: AngularJS

View solution in original post

1 REPLY 1

Re: How do I add a simple 10 second delay after a button is pressed?

You can use $timeout to achieve this. Check out the AngularJS documentation for more information: AngularJS

View solution in original post