NgControlStatusGroup

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

@Directive({ selector: '[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]', host: ngControlStatusHost }) class NgControlStatusGroup extends AbstractControlStatus { }

选择器

[formGroupName] [formArrayName] [ngModelGroup] [formGroup] form:not([ngNoForm]) [ngForm]