Skip to content

amstel91/otp-input-directive

Repository files navigation

otpInputDirective

An Input Form Element to enter OTP Number, PIN or split single characters. Alt Text

Usage

Add angular and otpInputDirective to your code

<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.3/angular.min.js"></script>
<script src="otpInputDirective.min.js"></script>
  • Add a dependency to the otpInputDirective module in your application.
angular.module('app', ['otpInputDirective']);

In your HTML:

<div otp-input-directive options="otpInput"></div>

In your Angular Controller:

$scope.otpInput={
            size:6,
            type:"text",
            onDone: function(value){
                console.log(value);
            },
            onChange: function(value){
                console.log(value);
            }
        };

Releases

No releases published

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy