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

ngx-number-format

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-number-format

Simple number format for input element in Angular

16.0.0
latest
Source
npm
Version published
Weekly downloads
462
23.53%
Maintainers
1
Weekly downloads
 
Created
Source

ngx-number-format

Simple number format for input element in Angular

GitHub license

Table of contents

Versions

Angularngx-number-format
>=14.0.0 <15.0.0v14.x
>=13.0.0 <14.0.0v13.x
>=12.0.0 <13.0.0v12.x
>=11.0.0 <12.0.0v11.x
>=10.0.0 <11.0.0v3.x
>=6.0.0 <10.0.0v2.x

Installation instructions

Install ngx-number-format from npm:

npm install ngx-number-format --save

Add needed package to NgModule imports:

import { NgxNumberFormatModule } from 'ngx-number-format';

@NgModule({
  ...
  imports: [NgxNumberFormatModule,...]
  ...
})

Add ngxNumberFormat to your input element:

<input type="text" ngxNumberFormat="#,###,###" />

Demo

demo project

API

InputTypeDefaultRequiredDescription
[allowNegative]booleanfalsenoAllows to negative numbers.

Keywords

angular

FAQs

Package last updated on 13 Jun 2023

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