UNPKG

955 BTypeScriptView Raw
1import { EventEmitter, ChangeDetectorRef, OnDestroy, ElementRef } from '@angular/core';
2/**
3 * Count up component
4 *
5 * Loosely inspired by:
6 * - https://github.com/izupet/angular2-counto
7 * - https://inorganik.github.io/countUp.js/
8 *
9 * @export
10 */
11export declare class CountUpDirective implements OnDestroy {
12 private cd;
13 countDuration: number;
14 countPrefix: string;
15 countSuffix: string;
16 valueFormatting: any;
17 set countDecimals(val: number);
18 get countDecimals(): number;
19 set countTo(val: any);
20 get countTo(): any;
21 set countFrom(val: any);
22 get countFrom(): any;
23 countChange: EventEmitter<any>;
24 countFinish: EventEmitter<any>;
25 nativeElement: any;
26 value: any;
27 formattedValue: string;
28 private animationReq;
29 private _countDecimals;
30 private _countTo;
31 private _countFrom;
32 constructor(cd: ChangeDetectorRef, element: ElementRef);
33 ngOnDestroy(): void;
34 start(): void;
35}