A simple angular input component to help users type time. It can parse most commonly used time formats to let your users type the time in any manner they want.
-
Install the package using
npm
oryarn
npm install ngx-time-input
ORyarn add ngx-time-input
-
Import
TimeInputModule
in yourapp.module.ts
import { TimeInputModule } from ngx-time-input
-
Add
TimeInputModule
to theimports
array in your AppModule -
Use as:
<ngx-time-input (onTimeChange)="timeChanged($event)"></ngx-time-input>
- Configuration Options
- Usage within a form.
- Unit Tests