![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
ngx-timer-tmp
Advanced tools
Count up timer for angular 5+
npm i ngx-timer --save
import { NgxTimerModule } from 'ngx-timer';
@NgModule({
imports: [
...
NgxTimerModule
],
})
In html
<countup-timer [countUpTimerConfig]="testConfig"></countup-timer>
You can import CountupTimerService from ngx-timer to do the following functionalities.
this.countupTimerService.startTimer();
By passing a start time to above function timer will start from that. eg :-
let cdate = new Date();
cdate.setHours(cdate.getHours()-2);
this.countupTimerService.startTimer(cdate);
this.countupTimerService.pauseTimer();
this.countupTimerService.stopTimer();
Configurations
Import countUpTimerConfigModel model from ngx-timer you will be able use following configurations.
import { countUpTimerConfigModel, timerTexts } from 'ngx-timer';
ngOnInit(): void {
//countUpTimerConfigModel
this.testConfig = new countUpTimerConfigModel();
//custom class
this.testConfig.timerClass = 'test_Timer_class';
//timer text values
this.testConfig.timerTexts = new timerTexts();
this.testConfig.timerTexts.hourText = "Hours"; //default - hh
this.testConfig.timerTexts.minuteText = "Minutes"; //default - mm
this.testConfig.timerTexts.secondsText = "Seconds"; //default - ss
}
In html
<countdown-timer [countDownTimerConfig]="testConfig"></countdown-timer>
You can import CountdownTimerService from ngx-timer to do the following functionalities.
1.To start the timer
let cdate = new Date();
cdate.setHours(cdate.getHours() + 2);
this.CountdownTimerService.startTimer(cdate);
2.To pause the timer
this.CountdownTimerService.pauseTimer();
3.To stop the timer
this.CountdownTimerService.stopTimer();
3.To resume the timer
this.CountdownTimerService.resumeTimer();
Configurations
Import countUpTimerConfigModel model from ngx-timer you will be able use following configurations.
import { countDownTimerConfigModel, countDownTimerTexts } from 'ngx-timer';
ngOnInit(): void {
//countUpTimerConfigModel
this.testConfig = new countDownTimerConfigModel();
//custom class
this.testConfig.timerClass = 'test_Timer_class';
//timer text values
this.testConfig.timerTexts = new countDownTimerTexts();
this.testConfig.timerTexts.hourText = "Hours"; //default - hh
this.testConfig.timerTexts.minuteText = "Minutes"; //default - mm
this.testConfig.timerTexts.secondsText = "Seconds"; //default - ss
}
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. 😊
FAQs
Count up timer for angular 5+
The npm package ngx-timer-tmp receives a total of 4 weekly downloads. As such, ngx-timer-tmp popularity was classified as not popular.
We found that ngx-timer-tmp demonstrated a not healthy version release cadence and project activity because the last version was released 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.