angular8 form control min number code example Example 1: validation minlength angular Validators.minLength(9) Example 2: angular number validation ng-pattern="re"