December 2014
Intermediate to advanced
272 pages
8h 17m
English
The AngularJS $interval and $timeout services enable you to delay execution of code for an amount of time. These services interact with the JavaScript setInterval and setTimeout functionality—but within the AngularJS framework.
The $interval and $timeout services use the following syntax:
$interval(callback, delay, [count], [invokeApply]);$timeout(callback, delay, [invokeApply]);
The parameters are described here:
■ callback: Is executed when the delay has expired.
■ delay: Specifies the number of milliseconds to wait before the callback function is executed.
■ count: Indicates the number of times to repeat the interval.
■ invokeApply: Is a Boolean that, if ...
Read now
Unlock full access