angular get length of formcontrol value
When it's time to validate Angular call each validator function. parameter that is bounded to input of number type that maximum value should be 10. Also you are missing marking your form as a form group, it should be: