You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| demand |`boolean`|`false`| Start the counter on demand, must call `begin()` to starting |
71
+
| leftTime |`number`|`0`| Calculate the remaining time based on the server, e.g: `10`,`5.5`, (Unit: seconds) |
72
+
| stopTime |`number`| - | Refers to counting down from local time to end time (Unit: Milliseconds second UNIX timestamp) |
73
+
| format |`string`|`HH:mm:ss`| Formats a date value, pls refer to [Accepted patterns](https://angular.io/api/common/DatePipe#usage-notes)|
74
+
| prettyText |`(text: string) => string`| - | Beautify text, generally used to convert formatted time text into HTML |
75
+
| notify | `number[]| number` | - | Should be trigger type `notify` event on the x second. When values is `0` will be trigger every time |
76
+
| formatDate |`CountdownFormatFn`| - | Default based on the implementation of `formatDate` in `@angular/common`, You can changed to other libs, e.g: [date-fns](https://date-fns.org/v2.0.1/docs/format)|
77
+
| timezone |`string`|`+0000`| A timezone offset (such as '+0430'), or a standard UTC/GMT. When not supplied, uses the end-user's local system timezone |
The timer will call repaint function every time, if it's `0.1s` accuracy, it will be more frequent. so you can make same special effects, like [Flip](https://cipchk.github.io/ngx-countdown/#/tpl/flip).
101
-
102
104
## Troubleshooting
103
105
104
106
Please follow this guidelines when reporting bugs and feature requests:
0 commit comments