
Security News
The AI Industry Is Betting on Open Weights
An open letter signed by 50 companies, from NVIDIA and Microsoft to Mistral and Hugging Face, urges Washington not to restrict open weight AI.
@seges/angular-validators
Advanced tools
#Validators for angular directives
##Prerequisites TypeScript 1.8.10
##How to use
Import the module.
Add the module as a dependency to your angular project.
There are five custom validators:
###Maximum and minimum value Validates the given value against a set max/min value. The set max/min value can be dynamic e.g. set through variable reference:
Example with ngMessages:
<form name="myForm">
<input name="maxval" ng-model="ctrl.value" max-value="{{ctrl.myMaxValue}}"/>
<div class="validation-messages" ng-messages="myForm.maxval.$error" ng-if="myForm.maxval.$invalid">
<span ng-message="maxValue">Number is too big</span>
</div>
</form>
###Integer Validates that the given value is an integer.
Example with ngMessages:
<form name="myForm">
<input name="int" ng-model="ctrl.value" integer/>
<div class="validation-messages" ng-messages="myForm.int.$error" ng-if="myForm.int.$invalid">
<span ng-message="integer">Number is too big</span>
</div>
</form>
###Minute format Validates that the input is in the format 00:00.
Example with ngMessages:
<form name="myForm">
<input name="minute" ng-model="ctrl.value" minute-format/>
<div class="validation-messages" ng-messages="myForm.minute.$error" ng-if="myForm.minute.$invalid">
<span ng-message="minuteFormat">Number is too big</span>
</div>
</form>
###24 hour format Validates that the input is in the format 00:00.
Example with ngMessages:
<form name="myForm">
<input name="hour" ng-model="ctrl.value" 24-hour-format/>
<div class="validation-messages" ng-messages="myForm.hour.$error" ng-if="myForm.hour.$invalid">
<span ng-message="24HourFormat">Number is too big</span>
</div>
</form>
FAQs
TypeScript 1.8.10
The npm package @seges/angular-validators receives a total of 1 weekly downloads. As such, @seges/angular-validators popularity was classified as not popular.
We found that @seges/angular-validators demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
An open letter signed by 50 companies, from NVIDIA and Microsoft to Mistral and Hugging Face, urges Washington not to restrict open weight AI.

Security News
/Research
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.

Research
/Security News
A large-scale campaign abused GitHub Actions in compromised repositories to exploit CVE-2026-41940 in cPanel and WHM and steal server credentials.