MinValidator
A directive which installs the MinValidator
for any formControlName
, formControl
, or control with ngModel
that also has a min
attribute.
参见
Exported from
选择器
input[type=number][min][formControlName]
input[type=number][min][formControl]
input[type=number][min][ngModel]
属性
属性 | 说明 |
---|---|
@Input() | 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">