yuyang041060120 / ng2-validation

angular2 validation
https://yuyang041060120.github.io/ng2-validation/index.html
MIT License
613 stars 214 forks source link

Don't let user leave input if it doesn't validate #65

Closed crooksey closed 6 years ago

crooksey commented 7 years ago

Say for example I have a html number input:

<input type="number">

This does not pyhsically let a user input text, other than numbers.

If I use the number validator with this plugin, text entry is allowed, it just displays a warning. Is there anyway to make ng2-validation disable entry into a form input, if it doesn't match the validation string?