Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
This site is no longer updated.Head to Angular.devHome
/

This is the archived documentation for Angular v17. Please visit angular.dev to see this page for the current version of Angular.

MinValidator

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

See also

Exported from

Selectors

Properties

Property Description
@Input()
min: string | number | null

Tracks changes to the min bound to this directive.

Description

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">