# cmyd-input-comma

> This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 12.2.0.

Latest version **0.0.1** (published 2022-03-10) · 0 weekly downloads

## Install

```sh
npm install cmyd-input-comma
pnpm add cmyd-input-comma
yarn add cmyd-input-comma
bun add cmyd-input-comma
```

## 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.1 |
| Published | 2022-03-10 |
| First published | 2022-03-10 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 38.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | htcmafia |
| Keywords | angular, typescipt, utility, Input with comma, thousands separator, thousands separator input |

## Links

- npm: https://www.npmjs.com/package/cmyd-input-comma
- npm.io page: https://npm.io/package/cmyd-input-comma

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) >=2.3.0

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2022-03-10

## README

# CmydInputComma

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 12.2.0.

## Overview

`CmydInputComma` Docs
- `valueChange` Emits a number value.
- `value` Used for providng value.

> This is how you will use with a number variable

```

<input 
    type="text"
    cmydComma
    (valueChange)="SomeNumberVariable" />
```

`CmydInputComma` Since we can't use formControl with directive attached, we do it like this.

> This is how you will use with a formControl

```

<input 
    type="text"
    cmydComma
    (valueChange)="form.get('control')?.setValue($event)" />

<input 
    formControlName="control"
    hidden
    type="number" />
```

> Or you can use it like this

```
<input 
    type="text"
    cmydComma
    [disabled]="form.get('control')?.disabled"
    [value]="form.get('control')?.value"
    (valueChange)="form.get('control')?.setValue($event)" />

<input 
    formControlName="control"
    hidden
    type="number" />

```

## Version

> `0.0.1` Initial commit<br/>

 That's it, 

## Further help
If you found a bug or know a better way of doing it please do reach me out at `hamza13sw185@gmail.com`.

---
_Source: https://npm.io/package/cmyd-input-comma · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
