ngx-numeric-input
v1.0.1
Published
This is a simple Angular numeric input component with buttons to increase and decrease the numeric value.
Readme
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 --saveUsage
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 selectedmax: Maximal number that can be selecteddisabled: Indicates whether the value can be changed
