https://github.com/markpenaranda/ngx-countdown-timer
Simple countdown timer for angular 4+
https://github.com/markpenaranda/ngx-countdown-timer
angular
Last synced: 2 months ago
JSON representation
Simple countdown timer for angular 4+
- Host: GitHub
- URL: https://github.com/markpenaranda/ngx-countdown-timer
- Owner: markpenaranda
- Created: 2017-10-17T10:55:00.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-06-02T19:15:34.000Z (almost 4 years ago)
- Last Synced: 2025-10-18T17:46:36.978Z (5 months ago)
- Topics: angular
- Language: JavaScript
- Homepage:
- Size: 1.27 MB
- Stars: 15
- Watchers: 1
- Forks: 27
- Open Issues: 25
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# ngx-countdown-timer
## Installation
To install this library, run:
```bash
$ npm install ngx-countdown-timer --save
```
## Consuming your library
Once you have published your library to npm, you can import your library in any Angular application by running:
```bash
$ npm install ngx-countdown-timer
```
and then from your Angular `AppModule`:
```typescript
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
// Import your library
import { CountdownTimerModule } from 'ngx-countdown-timer';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
// Specify your library as an import
LibraryModule
CountdownTimerModule.forRoot()
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
```
Once your library is imported, you can use its components, directives and pipes in your Angular application:
```xml
{{title}}
Timer mode:
Countdown:
Countdown with zero trigger:
```
## Development
To generate all `*.js`, `*.d.ts` and `*.metadata.json` files:
```bash
$ npm run build
```
To lint all `*.ts` files:
```bash
$ npm run lint
```
## License
MIT © [MJP](mailto:markangelpenaranda@gmail.com)