new Timer()
AngularJS Factory for tracking time instances
Members
percentComplete :number
Current timer progress, in % (0-100).
- Source:
Type:
-
number
Methods
set(timeValue, autoplay, callback)
Set (and optionally start) the timer.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
timeValue |
number
|
Time to wait, in seconds. |
autoplay |
boolean
|
Whether to start the timer immediately. |
callback |
function
|
Callback to run when timer completes. |