填写这份《一分钟调查》,帮我们(开发组)做得更好!去填写Home

MinValidator

A directive which installs the MinValidatorfor any formControlName, formControl, or control with ngModel that also has a min attribute.

参见

Exported from

选择器

属性

属性说明
@Input()
min: string | number

Tracks changes to the min bound to this directive.

说明

Adding a min validator

The following example shows how to add a min validator to an input attached to an ngModel binding.

      
      <input type="number" ngModel min="4">