2.0.1 • Published 7 years ago
ng2-ert-clock v2.0.1
ERT-CLOCK for Angular 2
Overview
Angular 2 component that shows a clock set on the timezone provided as component input.
This component time is Daylight Saving Time aware.
AoT ready.
How to use it
- Install with npm install ng2-ert-clock
- Integrate node_modules/ng2-ert-clock/ert-clock.css or node_modules/ng2-ert-clock/src/ert-clock.scss in your CSS/SCSS.
- Optional - Import node_modules/ng2-ert-clock/quadrant1.png in your asset folder
- If needed, overwrite CSS rule on .ert-clock in order to use fix the desired quadrant as background-image
Import the Angular 2 module into your module using import { ErtClockModule } from 'ng2-ert-clock'; and put ErtClockModule in your module imports
Example:
@NgModule({ imports: ErtClockModule, ...
Use the clock adding a ert-clock element in your template with a valid momentJsPlace input
Example:
<ert-clock momentJsPlace="'America/Los_Angeles'">
<ert-clock momentJsPlace="'Europe/Rome'">
Demo
Demo available: https://bitbucket.org/eurisredteam/ng2-ert-clock-demo
Questions?
Feel free to contact the author!