Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
angular-eha.only-digits
Advanced tools
Provides a Angular directive for input fields to ensure that only digits are accepted. Optionally converts the input to an integer.
Install with npm:
npm install --save angular-eha.only-digits
Or alternatively, with Bower:
bower install --save angular-eha.only-digits
Add eha.only-digits
to your app's module dependencies:
angular.module('app', [
'eha.only-digits'
]);
Use like this:
<input type="text" only-digits>
<input type="text" only-digits convert-to-number="true">
The input field has to be of type text
, otherwise the browser will send undefined as value
when there is invalid input and we cannot hook into ngModel.$parsers to remove unwanted chars.
Optionally convert-to-number="true"
can be set to convert the the string input value to a
number before its set on the model.
Apache 2.0, see LICENSE
© 2015 Till Reitemeyer & Robin Mehner for eHealth Systems Africa
FAQs
Angular directive to only allow digits in an input field
We found that angular-eha.only-digits demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.