**This package supports Angular 12**
npm install verify-inputsThis package supports Angular 12
Description
---
1. Install with npm:npm i verify-inputs --save
2. Add VerifyInputsModule to your @NgModule like example below
``typescript
import { BrowserModule } from "@angular/platform-browser";
import { NgModule } from "@angular/core";
import { AppComponent } from "./app.component";
import { FormsModule, ReactiveFormsModule } from "@angular/forms";
import { CommonModule } from "@angular/common";
import { VerifyInputsModule } from "verify-inputs";
@NgModule({
declarations: [AppComponent],
imports: [
BrowserModule,
FormsModule,
ReactiveFormsModule,
VerifyInputsModule,
CommonModule,
],
providers: [],
bootstrap: [AppComponent],
})
export class AppModule {}
`
3. Add your input into form like example below
`html`
4. Connect to your component
`typescript
import { Component, OnInit } from "@angular/core";
@Component({
selector: "app-root",
templateUrl: "./app.component.html",
styleUrls: ["./app.component.scss"],
})
export class AppComponent implements OnInit {
code!: string;
ngOnInit() {}
verifyCode(e: any) {
this.code = e;
}
}
``