Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ngx-currency-input

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-currency-input

[![gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/filipows/ngx-currency-input?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![NPM version](https://img.shields.io/npm/v/ngx-currency-input.svg?style=flat-s

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
14
increased by16.67%
Maintainers
1
Weekly downloads
 
Created
Source

Angular Currency Input Directive

gitter NPM version Build codecov.io code style: prettier semantic-release

Input directive to format number according to users locale and preventing from entering more than 2 decimal places.

Demo | StackBlitz Template

Getting Started

Installation

 npm i ngx-currency-input --save

Import NgxCurrencyInput Module

import { NgxCurrencyInputModule } from 'ngx-currency-input';

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

Usage

<input ngxCurrencyInput [(ngModel)]="value" />

Available Options

NameDescription
@Input() formatOnlyOnBlur: booleanWhen true, the input won't be formatted while entering a value. Default: false
@Input() min: numberValidation min value
@Input() max: numberValidation max value

Example:

<input ngxCurrencyInput [formatOnlyOnBlur]="true" [min]="10" [max]="1000" [(ngModel)]="value" />

Authors

  • Chris Filipowski - filipows

License

This project is licensed under the MIT License - see the LICENSE file for details

Keywords

FAQs

Package last updated on 28 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc