angular-input-counter
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

Angular Input Counter

This project was generated with Angular CLI version 8.1.3.

Angular Input Counter

How to use?

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AngularCounterModule } from 'angular-input-counter';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    AngularCounterModule,
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

How to use in template?

<angular-input-counter 
        [min]="5"  
        [max]="20"   
        [step]="1"  
        [readonly]="true"  
        [(counterValue)]="counterValue" 
        [color]="'primary'"></angular-input-counter>

APIs

Field Default Value Mandatory
min 1 N
max 10 N
step 1 N
counterValue - Two way binding
color primary N
readonly F N
ngModel N N

Package Sidebar

Install

npm i angular-input-counter

Weekly Downloads

22

Version

0.1.0

License

MIT

Unpacked Size

95.9 kB

Total Files

26

Last publish

Collaborators

  • org-dinesh-rawat