October 2017
Intermediate to advanced
280 pages
6h 50m
English
We have already seen that we can alter validation behavior to any control using the required attribute. Angular provides two more built-in validators, as follows:
These validators are defined with Angular directives and can be used in the following way:
<input id="realNameInput" class="form-control"
type="text" minlength="2" maxlength="30">
This way, we specify that we want the value of the input to be between 2 and 30 characters.
Read now
Unlock full access