https://github.com/previousdeveloper/angular2-simple-countdown
a simple countdown angular2 directive with multiple language
https://github.com/previousdeveloper/angular2-simple-countdown
angular2 countdown countdown-angular2-directive
Last synced: about 1 month ago
JSON representation
a simple countdown angular2 directive with multiple language
- Host: GitHub
- URL: https://github.com/previousdeveloper/angular2-simple-countdown
- Owner: previousdeveloper
- License: mit
- Created: 2015-11-13T20:15:40.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-07T06:09:35.000Z (over 7 years ago)
- Last Synced: 2025-03-17T19:13:32.662Z (about 1 month ago)
- Topics: angular2, countdown, countdown-angular2-directive
- Language: TypeScript
- Size: 11.7 KB
- Stars: 27
- Watchers: 2
- Forks: 17
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# angular2-simple-countdown
a simple countdown angular2 directive with multiple language[](https://badge.fury.io/js/angular2-simple-countdown)
## Installation
### Npm
`npm install angular2-simple-countdown`
## Usage
```javascript
import {CountDown} from "../../node_modules/angular2-simple-countdown/countdown";@NgModule({
declarations: [
CountDown
],
....
})text: any = { "Weeks": "Weeks",
"Days": "Days", "Hours": "Hours",
Minutes: "Minutes", "Seconds": "Seconds",
"MilliSeconds":"MilliSeconds" };`Change Default Text`
```
## Field Schema`count-down`: initializes directive
`end-date`: the end date. _takes any format js Date() allows_
`units`: which units you want the countdown to be viewed in