0.0.7-2 • Published 3 years ago
sv-verification-code v0.0.7-2
SvVerificationCode
Table of Contents
Demo
comment: <> (✨ Stackblitz(https://stackblitz.com/edit/svstarrating?file=src/app/app.component.ts); ✨)
Installation
Install with NPM
npm i sv-verification-code
Options
Name | Type | Default Value | Description |
---|---|---|---|
required | boolean | true | |
digitOnly | boolean | true | |
autofocus | boolean | true | |
numberOfDigit | number | 5 | |
@Output() enter | number | ||
@Output() verifyText | number |
Usage
Import SvVerificationCodeModule in your app
import { SvVerificationCodeModule } from 'sv-verification-code';
@NgModule({
imports: [
...
SvVerificationCodeModule
],
...
})
export class AppModule { }
Example
<sv-verification-code
[required]="true"
[digitOnly]="true"
[autofocus]="true"
[numberOfDigit]="5"
(enter)="verifyText($event)"
(verifyText)="verifyText($event)">
</sv-verification-code>
verifyText(event): void {
console.log('output result', event);
}
Author
Mehdi Sadeghian
Samira Vahidi
Contact
github
linedIn
twitter