Skip to content

A very simple currency mask directive that allows using a number attribute with the ngModel.

License

Notifications You must be signed in to change notification settings

dyhaz/ng2-currency-mask

 
 

Repository files navigation

ng2-money

A very simple currency mask directive for Angular that allows using a number attribute with the ngModel (forked from github.com/cesarrew/ng2-currency-mask).

Part of Engin3 VDI

Getting Started

Installing and Importing

Install the package by command:

    npm install ng2-money --save

Import the module

import { CurrencyMaskModule } from "ng2-money";

@NgModule({
    imports: [
        ...
        CurrencyMaskModule
    ],
    declarations: [...],
    providers: [...]
})
export class AppModule {}

Using

    <input currencyMask [(ngModel)]="value" />
  • ngModel An attribute of type number. If is displayed '$ 25.63', the attribute will be '25.63'.

Options

You can set options...

    <!-- example -->
    <input currencyMask [(ngModel)]="value"/>

Questions? Open a Issue!

About

A very simple currency mask directive that allows using a number attribute with the ngModel.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%