https://github.com/pocesar/angular-name-validation
Angular directive for validating UTF-8 full names on text inputs
https://github.com/pocesar/angular-name-validation
Last synced: 12 months ago
JSON representation
Angular directive for validating UTF-8 full names on text inputs
- Host: GitHub
- URL: https://github.com/pocesar/angular-name-validation
- Owner: pocesar
- License: mit
- Created: 2014-10-04T01:43:18.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-05-04T22:12:52.000Z (about 11 years ago)
- Last Synced: 2024-10-18T06:28:47.855Z (over 1 year ago)
- Homepage:
- Size: 141 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
angular-name-validation
=======================
Angular directive for validating UTF-8 full names on text inputs
## Usage
```js
angular.module('yourapp', ['nameValidation']).controller('InYourController', ['nameValidation', function(nameValidation){
this.valid = nameValidation('\u1920\u8212 \u8211');
}]);
```
```html
Please fill in a valid full name
```
if invalid, the `fullname` key will be added to the `$error` object on the `ngModel`