ReadonlyariaAccessible label for the timer region.
ReadonlyexpiredEmitted once when the countdown reaches zero (countdown mode only).
ReadonlyformatControls which units are displayed.
"dhms" — days / hours / minutes / seconds"hms" — hours / minutes / seconds (days overflow into hours)"ms" — minutes / secondsReadonlymode"countdown" (default) counts down to target; "elapsed" counts up from target.
ReadonlytargetTarget date or Unix timestamp (ms).
A callback method that is invoked immediately after the default change detector has checked the directive's data-bound properties for the first time, and before any of the view or content children have been checked. It is invoked only once when the directive is instantiated.
A live countdown or elapsed-time display that ticks every second.
In
countdownmode it counts down to atargetdate/timestamp and emitsexpiredwhen it reaches zero. Inelapsedmode it counts up from the target date.Example