Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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