NgControlStatus class
Directive automatically applied to Angular forms that sets CSS classes based on control status (valid/invalid/dirty/etc).
- Annotations
-
- @Directive(selector: '[ngControl],[ngModel],[ngFormControl]')
- @Deprecated('Use listeners or variable binding on the control itself instead. ' 'This adds overhead for every form control whether the class is ' 'used or not.')
Constructors
- NgControlStatus(@Self() NgControl _cd)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- ngClassDirty → bool
-
no setter
- ngClassInvalid → bool
-
no setter
- ngClassPristine → bool
-
no setter
- ngClassTouched → bool
-
no setter
- ngClassUntouched → bool
-
no setter
- ngClassValid → bool
-
no setter
- 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
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited