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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

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

DennisAbele
10-Marble

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

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

Announcements

Top Tags