RiesvGeffen
RiesvGeffen

Reputation: 1589

How to run particular while $timeout

So I want to make a short $timeout in my code, and while that $timeout is active I want to run this bit of code:

pbInterval = $interval(progressBar("delay"), 100);

I don't necessarily need to use $timeout, something else would be fine too. I just want a short delay and run my particular code.

Upvotes: 0

Views: 44

Answers (1)

Alexander Elgin
Alexander Elgin

Reputation: 6956

$timeout(function() {
  progressBar("delay");
}, 100);        

Upvotes: 1

Related Questions