0.0.5 • Published 6 years ago

ng-code-input v0.0.5

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

ng-code-input

UI component for handling code retrival with seperate input elements

gif

Installing

npm i ng-code-input

Include the ng-code-input modules in your application

var app = angular.module('myapp', ['ng-code-input']);

Basic example

The most basic use of the directive in html

<ng-code 
    ng-model="ctrl.code" 
    digits="3" 
    class="my-custom-class">
</ng-code>

With a related angular controller:

angular.module('myapp')
.controller('ctrl', ['$scope', function ($scope){
    $scope.code = null;
}]);

Options

AttributeDescriptionDefault valueRequired
digitsnumber of digits to display3optional
classcustom classdefaultoptional

MIT Licence

MIT Licence

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

1.0.0

6 years ago