Skip to content

AngularJs directive that prevents non numeric characters from entering the input tag in html, except the dot character that serves as decimal separator

Notifications You must be signed in to change notification settings

visaruruqi/angularjs-only-num-directive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

angularjs-only-num-directive

Prevents non numeric characters from entering the input tag in html, except the dot character that serves as decimal seperator

usage examples:

<input type="text" only-num />
<input type="text" ng-model="firstName" only-num  />

before using the directive import it to your module

var app = angular.module('myAngularApp',['vitoys'])

app.controller('myController',function($scope){
  $scope.firstName = "Scully";
})

About

AngularJs directive that prevents non numeric characters from entering the input tag in html, except the dot character that serves as decimal separator

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published