Timer angular library
$ npm install --save timer-ng7
- Import TimerLibModule in app module.
- Define "@ViewChild(TimerComponent) child: TimerComponent" in your component's class.
- To start timer call this.child.startTimer() method
- To stop timer call this.child.stopTimer() method
- To reset timer call this.child.resetTimer() method
- Add
<tmr-timer></tmr-timer>
in html
MIT © Irfan