# @lucasheight/angular-controls

> [![npm version](https://badge.fury.io/js/%40lucasheight%2Fangular-controls.svg)](https://badge.fury.io/js/%40lucasheight%2Fangular-controls) # Angular-controls

Latest version **0.0.27** (published 2020-11-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install @lucasheight/angular-controls
pnpm add @lucasheight/angular-controls
yarn add @lucasheight/angular-controls
bun add @lucasheight/angular-controls
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.27 |
| Published | 2020-11-11 |
| First published | 2019-06-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 91.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Lynden Garrett |
| Maintainers | lucasheight |
| Keywords | angular, controls, library |

## Links

- npm: https://www.npmjs.com/package/@lucasheight/angular-controls
- Repository: https://github.com/lucasheight/angular-controls
- Homepage: https://github.com/lucasheight/angular-controls#readme
- Issues: https://github.com/lucasheight/angular-controls/issues
- npm.io page: https://npm.io/package/@lucasheight/angular-controls

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^2.0.0

## Recent versions

- 0.0.27 (latest) — 2020-11-11
- 0.0.26 — 2020-11-11
- 0.0.25 — 2020-09-30
- 0.0.24 — 2020-09-30
- 0.0.23 — 2020-09-30
- 0.0.22 — 2020-09-30
- 0.0.21 — 2020-09-22
- 0.0.20 — 2020-03-11
- 0.0.19 — 2020-03-10
- 0.0.18 — 2019-11-04
- 0.0.17 — 2019-09-06
- 0.0.16 — 2019-08-12
- 0.0.15 — 2019-08-07
- 0.0.14 — 2019-08-07
- 0.0.13 — 2019-07-01
- … 10 more at https://npm.io/package/@lucasheight/angular-controls/versions

## README

[![npm version](https://badge.fury.io/js/%40lucasheight%2Fangular-controls.svg)](https://badge.fury.io/js/%40lucasheight%2Fangular-controls)
# Angular-controls

## Number Input Component
A number input component.
**Features**
* Provides a 'factor' attribute to allow a display multiplication without change to model value.
This is useful when you want to display a decimal value as a percentage  (i.e. 01 * 100).
* Prefix and postfix inputs to allow display of additional strings.
* Supports template and reactive forms.
* Attributes for title, placeholder, disabled and decimals.

### Installation

Install the library from npm:

`npm install --save @lucasheight/angular-controls`

### Using component
Import the module into your angular application module.

```javascript 
import {LhControlsModule} from "@lucasheight/angular-controls"
```

```javascript
@NgModule({
    imports:[
      LhControlsModule
    ]
})
export class AppModule{}
```

Add the control in you template:

```html
<lh-numberInput factor="1" decimals="2" title="Hello numbers" placeholder="Please enter" prefix="$" postfix=" AUD" (valueChange)="onChange($event)" (focus)="onFocus($event)"
    (blur)="onBlur($event)" width="100" [(value)]="val"></lh-numberInput>
```

---
_Source: https://npm.io/package/@lucasheight/angular-controls · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
