Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
mat-currency-format
Advanced tools
This repos is creating a library for angular currency input and also it is showing how to use the library
Readme
This repos is creating a library for angular currency input and also it is showing how to use the library
This library was generated with Angular CLI version 8.1.3.
$ npm i mat-currency-format
The directive can be used in html input to automatically change the input to locale currency.
Input in any locale currency convert to number inside the component. On focus the user will see to type in number and on focus out the user will see the number in currency format with the support of internalization format and currency symbol
The selector name of the directive is localeCurrencyInput
The directive consists of two inputs:
import {MatCurrencyFormatModule} from 'mat-currency-format';
Inside the view you need to call mvndrMatCurrencyFormat and add input. Below is one of the example
<input type="text"
mvndrMatCurrencyFormat
[allowNegative]="false"
[currencyCode]="'USD'"
[value]="usAmount"
(blur)="updateUSAmount($event)" />
- Inside the component you can get the value by using event like blur or click or any other event. Below is one of the example updateUSAmount(event) { this.usAmount = event.target.value; }
FAQs
This repos is creating a library for angular currency input and also it is showing how to use the library
The npm package mat-currency-format receives a total of 723 weekly downloads. As such, mat-currency-format popularity was classified as not popular.
We found that mat-currency-format demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.