RequiredValidator class
A Directive
adding a required validator to controls with required
:
<input ngControl="fullName" required />
A required control must have a non-empty value.
- Implemented types
- Annotations
-
- @Directive(selector: '' '[required][ngControl],' '[required][ngFormControl],' '[required][ngModel]', providers: [ExistingProvider.forToken(NG_VALIDATORS, RequiredValidator)])
Constructors
Properties
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