1.0.1 • Published 5 years ago

ngx-numeric-input v1.0.1

Weekly downloads
21
License
MIT
Repository
-
Last release
5 years ago

Numeric Input for Angular 6+

The minimalistic numeric input library for Angular. Works both with reactive and template-driven Angular forms.

Installation

First you need to install the npm module:

npm install ngx-numeric-input --save

Usage

1. Import the NumericInputModule:

    import { NgModule } from '@angular/core';  
    import { BrowserModule } from '@angular/platform-browser';  
    import { AppComponent } from './app.component';  
    import { NumericInputModule } from 'ngx-numeric-input';
    
    @NgModule({
	    imports: [  
	        BrowserModule,  
	        NumericInputModule,  
	    ], 
	    bootstrap: [AppComponent]
	})
	export class AppModule { }

2. Use the ngx-numeric-input component in your templates:

<ngx-numeric-input></ngx-numeric-input>

API

NumericInputComponent

Attributes:

  • min: Minimal number that can be selected
  • max: Maximal number that can be selected
  • disabled: Indicates whether the value can be changed