Skip to content

Directive for validating and auto-formatting text inputs for date of births.

License

Notifications You must be signed in to change notification settings

omarmeky/angular-dob-input

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

angular-dob-input

Directive for validating and auto-formatting text inputs for date of births. Once the dob-input directive is added to a text input, the input will automatically behave like a date of birth input (auto format to MM / DD / YYYY). It will also update the input's validity (ng-valid vs ng-invalid) based on a valid date of birth.

I developed this plugin by copying the formatter and validator for credit card expiration from angular-payments and changing it to format and validate DOB.

#Installation

bower install --save angular-dob-input

#Usage

<input id="dob" name="dob" type="text" data-ng-model="dob" data-ng-required data-dob-input>

About

Directive for validating and auto-formatting text inputs for date of births.

Resources

License

Stars

Watchers

Forks

Packages

No packages published