npm.io
0.1.0 • Published 3 years ago

rupiah-currency

Licence
—
Version
0.1.0
Deps
1
Size
46 kB
Vulns
0
Weekly
0

Currency Formater for Angular

This package works for Angular 11 or later.

Table Of Content

Installation

  1. Use npm to install the package

    npm i rupiah-currency
  2. You could either add into your module imports the CurrencyModule

     import { RupiahCurrencyModule } from 'rupiah-currency';
    
    
    @NgModule({
     // ...
     imports: [
    // ...
    RupiahCurrencyModule
     ]
     })
  3. you can call it in the component html

    <input rupiahCurrency type="text">

    Note: input tag type must type="text".