UNPKG

ngx-simple-countdown

Version:

The most simple way to display a countdown in angular 20 (standalone and ngModule)

28 lines (27 loc) 1.35 kB
import { ElementRef, OnDestroy, OnInit, EventEmitter } from '@angular/core'; import { Observable } from 'rxjs'; import { CountdownResult, CountdownKeywords } from './models'; import * as i0 from "@angular/core"; export declare class NgxSimpleCountdownDirective implements OnInit, OnDestroy { private elementRef; dateTo: number; endMessage: string; language: string; reactive: boolean; styles: string; finish: EventEmitter<void>; countdownResult: CountdownResult; dateNow: number; interval$: Observable<number>; keywords: CountdownKeywords; totalSecondes: number; constructor(elementRef: ElementRef); ngOnInit(): void; ngOnDestroy(): void; private initSimpleCountdown; private createHTML; private updateSimpleCountdown; private componentDestroyed; static ɵfac: i0.ɵɵFactoryDeclaration<NgxSimpleCountdownDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<NgxSimpleCountdownDirective, "[simpleCountdown]", never, { "dateTo": { "alias": "dateTo"; "required": false; }; "endMessage": { "alias": "endMessage"; "required": false; }; "language": { "alias": "language"; "required": false; }; "reactive": { "alias": "reactive"; "required": false; }; "styles": { "alias": "styles"; "required": false; }; }, { "finish": "finish"; }, never, never, false, never>; }