W3cubDocs

/Angular 4 TypeScript

NgControlStatus

Stable Directive

Class Overview

class NgControlStatus extends AbstractControlStatus {
  constructor(cd: NgControl)
  
  
}

Selectors

[formControlName]

[ngModel]

[formControl]

Class Description

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

Constructor

constructor(cd: NgControl)

exported from forms/index, defined in forms/src/directives/ng_control_status.ts

© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/docs/ts/latest/api/forms/index/NgControlStatus-directive.html