dss-currency-mask
v1.0.4
Published
The `currencyMask` directive allows you to **format numeric input fields** as currency while typing. It automatically applies **thousand separators, currency symbols, and custom decimal precision**.
Readme
Currency Mask Directive
The currencyMask directive allows you to format numeric input fields as currency while typing.
It automatically applies thousand separators, currency symbols, and custom decimal precision.
📦 Installation
If published as an npm package, install it via:
npm install dss-currency-mask
###Then import it into your Angular module or component:
import { NgModule } from '@angular/core';
import { CurrencyMask } from 'dss-currency-mask';
@NgModule({
declarations: [],
imports: [CurrencyMask],
exports: [CurrencyMask]
})
export class SharedModule {}
```html
# syntax
<input type="text" [(ngModel)]="entity.decimals" CurrencyMask [decimals]="2" currency="INR"/>
