https://github.com/acwilan/ngacw-dpi
AngularJS validator for Guatemalan CUIs
https://github.com/acwilan/ngacw-dpi
angularjs dpi
Last synced: 6 months ago
JSON representation
AngularJS validator for Guatemalan CUIs
- Host: GitHub
- URL: https://github.com/acwilan/ngacw-dpi
- Owner: acwilan
- Created: 2016-04-15T22:58:01.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2018-12-26T21:34:27.000Z (over 7 years ago)
- Last Synced: 2025-07-10T10:20:33.843Z (11 months ago)
- Topics: angularjs, dpi
- Language: JavaScript
- Size: 32.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DPI Validator for AngularJS
## Description
This is a directive for DPI (Documento Personal de Identificación, something like a SSN in Guatemala).
## Downloading
You may use it as a bower component:
```
bower install ngacw-dpi
```
Or alternatively:
```
npm install angular-dpi-validator
yarn add angular-dpi-validator
```
You may as well download the [javascript file](src/ngacw-dpi.js) and use it yourself.
## Usage
First of all, you need to include the script in your HTML file.
```
```
Then, you need to modify your `app.js` file to include the dependency.
```
angular.module('yourModuleName', ['acw.directives'])
```
Finally, add it as an attribute to your inputs or components that depend on `ng-model`.
```
```
Cheers!