
Security News
Open Source CAI Framework Handles Pen Testing Tasks up to 3,600× Faster Than Humans
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
ngx-simple-countdown
Advanced tools
The most simple way to display a countdown in angular 19 (standalone and ngModule)
The most simple way to display a countdown in angular 19. This package is compatible with standalone component or ngModule.
npm i ngx-simple-countdown
yarn i ngx-simple-countdown
Since Angular 17, you have 2 ways to import the directive (standalone or ngModule)
import { NgxSimpleCountdownStandaloneDirective } from 'ngx-simple-countdown';
@Component({
selector: 'my-standalone-component',
standalone: true,
imports: [
...
NgxSimpleCountdownStandaloneDirective
]
})
export class MyStandaloneComponent implements OnInit {
...
}
import { NgxSimpleCountdownModule } from 'ngx-simple-countdown';
@NgModule({
imports: [NgxSimpleCountdownModule]
})
export class AppModule {}
<div class="countdown" simpleCountdown [dateTo]="1581242400"></div>
<!--
convert your date to timestamps
http://www.timestamp.fr/
-->
<div
class="countdown"
simpleCountdown
[dateTo]="1581242400"
[language]="'fr'"
[endMessage]="'custom end message'"
[reactive]="false"
[styles]="'
font-size: 20px;
color: red;
background-color: white;
padding: 10px 4px;
font-weight: bold;
'"
(finish)="onfinish()"
></div>
type | Name parameter | default value | custom value |
---|---|---|---|
input | language | en | en/English - fr/Francais - pl/Polski - de/Deutschland - es/España - pt/Portugal - cs/Česká republika - ge/Georgian |
input | endMessage | "countdown finish" | custom the end message (or empty message) |
input | reactive | true | false (remove seconds and minutes) |
input | styles | "font-size:20px;color:#FFF;background-color:#000;padding:10px 5px;font-weight:bold" | remplace my default |
output | finish | x | callback when the countdown was finish |
if your language is not supported please contact me
you can add somes styles in your element
.countdown {
border: 2px solid red;
position: absolute;
top: 0;
right: 0;
}
FAQs
The most simple way to display a countdown in angular 19 (standalone and ngModule)
The npm package ngx-simple-countdown receives a total of 156 weekly downloads. As such, ngx-simple-countdown popularity was classified as not popular.
We found that ngx-simple-countdown demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.