AbstractFormGroupDirective

class

npm Package @angular/forms
Module import { AbstractFormGroupDirective } from '@angular/forms';
Source forms/src/directives/abstract_form_group_directive.ts

Overview

class AbstractFormGroupDirective extends ControlContainer implements OnInit, OnDestroy {
  ngOnInit(): void
  ngOnDestroy(): void
  get control: FormGroup
  get path: string[]
  get formDirective: Form|null
  get validator: ValidatorFn|null
  get asyncValidator: AsyncValidatorFn|null
  // inherited from forms/ControlContainer
  name: string
  get formDirective: Form|null
  get path: string[]|null
  // inherited from forms/AbstractControlDirective
  get control: AbstractControl|null
  get value: any
  get valid: boolean|null
  get invalid: boolean|null
  get pending: boolean|null
  get disabled: boolean|null
  get enabled: boolean|null
  get errors: ValidationErrors|null
  get pristine: boolean|null
  get dirty: boolean|null
  get touched: boolean|null
  get untouched: boolean|null
  get statusChanges: Observable<any>|null
  get valueChanges: Observable<any>|null
  get path: string[]|null
  reset(value: any = undefined): void
  hasError(errorCode: string, path?: string[]): boolean
  getError(errorCode: string, path?: string[]): any
}

Description

This is a base class for code shared between NgModelGroup and FormGroupName.

Members

ngOnInit(): void

ngOnDestroy(): void

get control: FormGroup

Get the FormGroup backing this binding.

get path: string[]

Get the path to this control group.

get formDirective: Form|null

Get the Form to which this group belongs.

get validator: ValidatorFn|null

get asyncValidator: AsyncValidatorFn|null

© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v4.angular.io/api/forms/AbstractFormGroupDirective