Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/amstel91/otp-input-directive

An Input Form Element to enter OTP Number, PIN or split single characters.
https://github.com/amstel91/otp-input-directive

angular-directive angular1 angularjs autofocus-element form-element input-field ios-pin otp otpview pin pin-input split-characters split-field split-textbox

Last synced: about 18 hours ago
JSON representation

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

Awesome Lists containing this project

README

        

# otpInputDirective
An Input Form Element to enter OTP Number, PIN or split single characters.
![Alt Text](https://github.com/amstel91/otp-input-directive/blob/master/demo.gif)

### Demo Link - http://plnkr.co/edit/eCHuJT?p=preview

### Usage
Add angular and otpInputDirective to your code

```html

```

- Add a dependency to the `otpInputDirective` module in your application.

```js
angular.module('app', ['otpInputDirective']);
```

### In your HTML:
```html


```

### In your Angular Controller:
```js
$scope.otpInput={
size:6,
type:"text",
onDone: function(value){
console.log(value);
},
onChange: function(value){
console.log(value);
}
};
```