Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 19 days 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 (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-07T06:09:35.000Z (over 7 years ago)
- Last Synced: 2024-10-12T01:44:38.514Z (about 1 month ago)
- Topics: angular2, countdown, countdown-angular2-directive
- Language: TypeScript
- Size: 11.7 KB
- Stars: 27
- Watchers: 3
- 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[![npm version](https://badge.fury.io/js/angular2-simple-countdown.svg)](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