{"repo":"cipchk/ngx-countdown","free":true,"listed":false,"github":"https://github.com/cipchk/ngx-countdown","clone":"git clone https://github.com/cipchk/ngx-countdown.git","description":"Simple, easy and performance countdown for angular","language":"TypeScript","stars":193,"topics":["countdown","angular-countdown","angular5","performance-countdown","ngx-countdown","angular"],"license":"MIT","category":"ui-components","readme_excerpt":"ngx-countdown Simple, easy and performance countdown for angular Demo - Live Demo - Stackblitz Usage 1. Install 2、Template Method Name Description ------ ------------- begin() Start countdown, you must manually call when demand: false restart() Restart countdown stop() Stop countdown, must call restart when stopped, it's different from pause, unable to recover pause() Pause countdown, you can use resume to recover again resume() Resume countdown How call component methods Standalone API countdown Name Type Default Summary ------ ------ --------- --------- config CountdownConfig - Config event EventEmitter - Events CountdownConfig Name Type Default Summary ------ ------ --------- --------- demand boolean false Start the counter on demand, must call begin() to starting leftTime number 0 Calculate the remaining time based on the server, e.g: 10 , 5.5 , (Unit: seconds) stopTime number - Refers to counting down from local time to end time (Unit: Milliseconds second UNIX timestamp) format string HH:mm:ss Formats a date value, pls refer to Accepted patterns prettyText (text: string) = string - Beautify text, generally used to convert formatted time text into HTML notify number[], number - Should be trigger type notify event on the x second. When values is 0 will be trigger every time formatDate CountdownFormatFn - Default based on the implementation of formatDate in @angular/common , You can changed to other libs, e.g: date-fns timezone string +0000 A timezone offset (such as '+0430","default_branch":null,"files":null,"tree":[],"storefront":"/r/cipchk","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cipchk/ngx-countdown/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}