# Class FormControlErrorDirective

#### Deprecated

removed use the rxapControlError or rxapControlErrors directive

#### Implements

- OnInit
- OnDestroy

- Defined in packages/angular/forms/src/lib/directives/form-control-error.directive.ts:28

#####
Index

### Constructors

constructor

### Properties

errorKey
name
parent
subscription?
template
viewContainerRef

### Methods

ngOnDestroy
ngOnInit

## Constructors

### constructor

- new FormControlErrorDirective(template, parent, viewContainerRef): FormControlErrorDirective

- #### Parameters

  - template: TemplateRef<{
    $implicit: ValidationErrors;
    }>
  - parent: ControlContainer
  - viewContainerRef: ViewContainerRef

  #### Returns FormControlErrorDirective

  - Defined in packages/angular/forms/src/lib/directives/form-control-error.directive.ts:46

## Properties

### errorKey

errorKey: string

- Defined in packages/angular/forms/src/lib/directives/form-control-error.directive.ts:42

### name

name: string

- Defined in packages/angular/forms/src/lib/directives/form-control-error.directive.ts:35

### `Private` `Readonly` parent

parent: ControlContainer

- Defined in packages/angular/forms/src/lib/directives/form-control-error.directive.ts:48

### `Private` `Optional` subscription

subscription?: Subscription

- Defined in packages/angular/forms/src/lib/directives/form-control-error.directive.ts:44

### `Private` `Readonly` template

template: TemplateRef<{
$implicit: ValidationErrors;
}>

#### Type declaration

- ##### $implicit: ValidationErrors

- Defined in packages/angular/forms/src/lib/directives/form-control-error.directive.ts:47

### `Private` `Readonly` viewContainerRef

viewContainerRef: ViewContainerRef

- Defined in packages/angular/forms/src/lib/directives/form-control-error.directive.ts:49

## Methods

### ngOnDestroy

- ngOnDestroy(): void

- #### Returns void

  Implementation of OnDestroy.ngOnDestroy

  - Defined in packages/angular/forms/src/lib/directives/form-control-error.directive.ts:73

### ngOnInit

- ngOnInit(): void

- #### Returns void

  Implementation of OnInit.ngOnInit

  - Defined in packages/angular/forms/src/lib/directives/form-control-error.directive.ts:53