NgControlStatusGroup
directive
npm Package | @angular/forms |
---|---|
Module | import { NgControlStatusGroup } from '@angular/forms'; |
Source | forms/src/directives/ng_control_status.ts |
Overview
@Directive({ selector: '[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]', host: ngControlStatusHost }) class NgControlStatusGroup extends AbstractControlStatus { }
Selectors
[formGroupName]
[formArrayName]
[ngModelGroup]
[formGroup]
form:not([ngNoForm])
[ngForm]
Description
Directive automatically applied to Angular form groups that sets CSS classes based on control status (valid/invalid/dirty/etc).
Constructor
constructor(cd: ControlContainer)
© 2010–2018 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v5.angular.io/api/forms/NgControlStatusGroup