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

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

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

DennisAbele
6-Contributor

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

1 ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

1 REPLY 1

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

Top Tags