Skip to content

zivoradmilekic/zm-restrict

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

zm-restrict

AngularJS directive. This directive allows you to restrict characters users can enter in input fields!

Usage

Include zm-restrict.js file in your HTML page.

<script language="JavaScript" src="js/zm-restrict.js"></script>

Include zm-restrict directive in your angularJS app.

var app = angular.module('yourAppName', ['zm-restrict']);

Add zm-restrict attribute on your input element with regEx string you want!

<input type="number" ng-model="form.number" zm-restrict="/[0-9]/" placeholder="Some number">

About

AngularJS directive for restricted characters!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published