ng2-ert-clock
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-clockIntegrate
node_modules/ng2-ert-clock/ert-clock.cssornode_modules/ng2-ert-clock/src/ert-clock.scssin your CSS/SCSS.Optional - Import
node_modules/ng2-ert-clock/quadrant1.pngin your asset folderIf needed, overwrite CSS rule on
.ert-clockin order to use fix the desired quadrant as background-imageImport the Angular 2 module into your module using
import { ErtClockModule } from 'ng2-ert-clock';and putErtClockModulein your moduleimportsExample:
import { ErtClockModule } from 'ng2-ert-clock';@NgModule({ imports: [ErtClockModule], ...
Use the clock adding a
ert-clockelement in your template with a valid momentJsPlace inputExample:
<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!