DeferredValidator class
A validator that defers to another delegator.
Useful when a component class also serves as a validator. If the component
needs to inject NgControl
it could end up depending on itself if it binds
itself to NG_VALIDATORS
. Instead, it could bind this class, inject it and
set itself to delegate
field.
- Annotations
-
- @Injectable()
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(
ValidatorFn validation) → void -
call(
AbstractControl control) → Map< String, dynamic> ? -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
ValidatorFn validation) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited