timer-ng7
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

timer-lib-app NPM version Build Status

Timer angular library

Installation

$ npm install --save timer-ng7

Usage

  1. Import TimerLibModule in app module.
  2. Define "@ViewChild(TimerComponent) child: TimerComponent" in your component's class.
  3. To start timer call this.child.startTimer() method
  4. To stop timer call this.child.stopTimer() method
  5. To reset timer call this.child.resetTimer() method
  6. Add <tmr-timer></tmr-timer> in html

License

MIT © Irfan

Package Sidebar

Install

npm i timer-ng7

Weekly Downloads

6

Version

1.0.4

License

none

Unpacked Size

54.3 kB

Total Files

27

Last publish

Collaborators

  • irfannpm