ng-pattern-restrict

Allowing only certain inputs based on a regex pattern, for AngularJS
1 person uses it
Author: 1113433? AlphaGit
Submitted by: 1113433? AlphaGit

ng-pattern-restrict Build Status

Allowing certain inputs based on a regex pattern, preventing the user from inputting anything invalid.

Usage:

<input type="text" pattern="[0-9]+" ng-pattern-restrict />

Should be the same as

<input type="text" ng-pattern-restrict="[0-9]+" pattern="[0-9]+" />

comments powered by Disqus
This page was last updated almost 3 years ago.