🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

ngx-pretty-number

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

ngx-pretty-number

This library includes functionality to enable number only input field along with two decimal places. Package includes a single directive `ngxPrettyNumber` which needs to be applied on input (type='text') field. Adding this will enable comma formatting as

1.0.2
unpublished
latest
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

ngxPrettyNumber

This library includes functionality to enable number only input field along with two decimal places. Package includes a single directive ngxPrettyNumber which needs to be applied on input (type='text') field. Adding this will enable comma formatting as user start typing. Also, it will maintain two decimal places mask.

Library demo

Demo can be found here

How to use

Following are the three simple steps which you need to follow in order to use this library:

  • Install the library using the command npm install ngx-pretty-number in terminal.
  • Import the single library module in your application. import { NgxPrettyNumberModule } from 'ngx-pretty-module'. Also, add NgxPrettyNumberModule in your list of imports.
  • Use in your html. <input type='text' ngxPrettyNumberModule>

Wohoo! that's it. Enjoy coding.

Support/Help

If at any point you want help or want to give any sugesstion, feel free to contact me on my Twitter handle.

Suggestion/Bugs notes

This library is created to solve the challenge Angular developer's face when working on formatting the number fields. Although utmost care has been taken to make it bug free, but there can be some unknown issues which you might face. Your bugs/suggestions are heartly welcomed.

*Please drop Git issues only which are related to the library.

Contact me

If in case you get stuck in some issue, feel free to contact me on my Twitter handle.

Keywords

price format

FAQs

Package last updated on 18 Dec 2019

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