MinLengthValidator class
A Directive
adding minimum-length validator to controls with minlength
.
<input ngControl="fullName" minLength="10" />
- Implemented types
- Annotations
-
- @Directive(selector: '' '[minlength][ngControl],' '[minlength][ngFormControl],' '[minlength][ngModel]', providers: [ExistingProvider.forToken(NG_VALIDATORS, MinLengthValidator)])
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- minLength ↔ int
-
getter/setter pair
- minLengthAttr ↔ String
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
AbstractControl c) → Map< String, dynamic> ? -
Returns a map of the errors associated with this control.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited