ngrx-forms
ngrx-forms copied to clipboard
feat(validation): add between validators
Adds inclusive and exclusive between validators as a shorthand for combining the lessThan
, greaterThan
etc. validators and facilitating better error messages.
Thank you @jamie94bc for this contribution. The code looks good. The only thing missing is an update to the validation docs (at docs/user-guide/validation.md
). Please add entries for the two new validation functions to the table. After that is done I'll merge the PR and release a new version.
Done!
@MrWolfZ @dzonatan can this be merged?
A bit late answer but I have no access for merging. Pinging @MrWolfZ
This would be useful, I was just looking for this. Specifically, the advantage is to be able to indicate in the error message "This must be between x & y".