
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
angular-otp-box
Advanced tools
Angular otp input field component for web applications. Easy to integrate and use.
Angular otp input field component for web applications. Easy to integrate and use.
npm i angular-otp-box
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>
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| setting | object | { length:4, timer: 0 } | true | configurations to configure the component |
| onValueChange | function | -- | true | Emitter that will emit otp, -1 when the timer reaches 0 count and -2 when resend button is clicked |
setting options
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| length | number | 4 | true | Number of OTP inputs |
| numbersOnly | boolean | -- | false | set true to allow only numbers as input |
| inputClass | string | -- | false | Class applied to each input. |
| wrapperClass | string | -- | false | Class applied to wrapper element. |
| inputStyles | object | -- | false | Style applied to each input.Check [ngStyles](https://angular.io/api/common/NgStyle) for more info. |
| wrapperStyles | object | -- | false | Style applied to wrapper element.Check [ngStyles](https://angular.io/api/common/NgStyle) for more info. |
| allowKeyCodes | string[] | -- | false | By default numbers alphabets and _ - are allowed.Y ou can define other key codes if needed. |
| timer | number | 0 | false | Countdown for otp |
| btnClass | string | -- | false | Class applied to resend otp button |
FAQs
Angular otp input field component for web applications. Easy to integrate and use.
The npm package angular-otp-box receives a total of 86 weekly downloads. As such, angular-otp-box popularity was classified as not popular.
We found that angular-otp-box demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.