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

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

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`