# ng-time-value-accessor

> Time value accessor for Angular

Latest version **0.0.2** (published 2018-09-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install ng-time-value-accessor
pnpm add ng-time-value-accessor
yarn add ng-time-value-accessor
bun add ng-time-value-accessor
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2018-09-10 |
| First published | 2018-08-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 621.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Xue Qin |
| Maintainers | 007300 |
| Keywords | angular, forms, ControlValueAccessor, TimeValueAccessor |

## Links

- npm: https://www.npmjs.com/package/ng-time-value-accessor
- Repository: https://github.com/007300/ng-time-value-accessor
- Homepage: https://github.com/007300/ng-time-value-accessor#readme
- Issues: https://github.com/007300/ng-time-value-accessor/issues
- npm.io page: https://npm.io/package/ng-time-value-accessor

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.0.2 (latest) — 2018-09-10
- 0.0.1 — 2018-08-29

## README

# WIP: ng-time-value-accessor

[![Build Status](https://travis-ci.org/007300/ng-time-value-accessor.svg?branch=master)](https://travis-ci.org/007300/ng-time-value-accessor)
[![npm version](https://badge.fury.io/js/ng-time-value-accessor.svg)](https://badge.fury.io/js/ng-time-value-accessor)

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:

```html
<input type="time" name="begin" [(ngModel)]="begin" timeAsSec>

OR

<input type="time" formControlName="begin" timeAsSec>
```

## Installation:

Install the package via yarn/npm:

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

Then import the module via NgModule:

```js
// app.module.ts

import { TimeValueAccessorModule } from "ng-time-value-accessor";

@NgModule({
  imports: [TimeValueAccessorModule]
})
export class AppModule {}
```

---
_Source: https://npm.io/package/ng-time-value-accessor · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
