0.0.5 • Published 6 years ago
ng-code-input v0.0.5
ng-code-input
UI component for handling code retrival with seperate input elements
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
Attribute | Description | Default value | Required |
---|---|---|---|
digits | number of digits to display | 3 | optional |
class | custom class | default | optional |