Directive automatically applied to Angular forms that sets CSS classes based on control status (valid/invalid/dirty/etc).

Annotations
  • Directive(selector: "[ngControl],[ngModel],[ngFormControl]", host: const {"[class.ng-untouched]" : "ngClassUntouched", "[class.ng-touched]" : "ngClassTouched", "[class.ng-pristine]" : "ngClassPristine", "[class.ng-dirty]" : "ngClassDirty", "[class.ng-valid]" : "ngClassValid", "[class.ng-invalid]" : "ngClassInvalid"})

Constructors

NgControlStatus(@ NgControl cd)

Properties

hashCode → int

Get a hash code for this object.

read-only, inherited
ngClassDirty → bool

read-only
ngClassInvalid → bool

read-only
ngClassPristine → bool

read-only
ngClassTouched → bool

read-only
ngClassUntouched → bool

read-only
ngClassValid → bool

read-only
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
toString() → String

Returns a string representation of this object.

inherited