angular-otp-box
v1.0.7
Published
Angular otp input field component for web applications. Easy to integrate and use.
Downloads
896
Maintainers
Readme
Angular Otp input Library
Angular otp input field component for web applications. Easy to integrate and use.
Demo
Live Demo
Installation
npm i angular-otp-box
Usage
Add AngularOtpLibModule
in app.module.ts
import { AngularOtpLibModule } from 'angular-otp-box';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
@NgModule({
declarations: [AppComponent],
imports: [NgOtpInputModule],
bootstrap: [AppComponent]
})
In component
add following:
<otp [setting]="settings" (onValueChange)="onInputChange($event)"></otp>
API
setting options