Timer

Timer

new Timer()

AngularJS Factory for tracking time instances

Source:
See:

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.

update()

Update the timer.

Source:

start()

Start the timer.

Source:

stop()

Stop and clear the timer.

Source:

clear()

Clear the timer's $timeout loop.

Source:

reset()

Clear, reset, and stop the timer.

Source: