ngx-simple-countdown
Version:
The most simple way to display a countdown in angular 19 (standalone and ngModule)
28 lines (27 loc) • 1.38 kB
TypeScript
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 NgxSimpleCountdownStandaloneDirective 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<NgxSimpleCountdownStandaloneDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<NgxSimpleCountdownStandaloneDirective, "[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, true, never>;
}