ng-time-value-accessor
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

WIP: ng-time-value-accessor

Build Status npm version

A time value accessor for Angular 5+, can be used for input[time]. Instead of 'hh:mm', the time will be converted to seconds since '00:00'.

Examples:

Add the attribute timeAsSec to a date input control:

<input type="time" name="begin" [(ngModel)]="begin" timeAsSec>
 
OR
 
<input type="time" formControlName="begin" timeAsSec>

Installation:

Install the package via yarn/npm:

yarn add ng-time-value-accessor
npm install --save ng-time-value-accessor

Then import the module via NgModule:

// app.module.ts
 
import { TimeValueAccessorModule } from "ng-time-value-accessor";
 
@NgModule({
  imports: [TimeValueAccessorModule]
})
export class AppModule {}

Package Sidebar

Install

npm i ng-time-value-accessor

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

637 kB

Total Files

383

Last publish

Collaborators

  • 007300