[@rxap/form-system](../wiki/globals) / ForFormArrayItemsDirective

# Class: ForFormArrayItemsDirective

Defined in: [packages/angular/form-system/src/lib/directives/array/for-form-array-items.directive.ts:41](https://gitlab.com/rxap/packages/-/blob/36b0e9732b24717840935712e316593ff6aba795/packages/angular/form-system/src/lib/directives/array/for-form-array-items.directive.ts#L41)

## Implements

- `AfterViewInit`
- `OnDestroy`

## Constructors

### new ForFormArrayItemsDirective()

> **new ForFormArrayItemsDirective**(`container`, `template`, `viewContainerRef`, `cdr`): [`ForFormArrayItemsDirective`](../wiki/Class.ForFormArrayItemsDirective)

Defined in: [packages/angular/form-system/src/lib/directives/array/for-form-array-items.directive.ts:47](https://gitlab.com/rxap/packages/-/blob/36b0e9732b24717840935712e316593ff6aba795/packages/angular/form-system/src/lib/directives/array/for-form-array-items.directive.ts#L47)

#### Parameters

##### container

`ControlContainer`

##### template

`TemplateRef`\<[`ForFormArrayItemsDirectiveContext`](../wiki/Interface.ForFormArrayItemsDirectiveContext)\>

##### viewContainerRef

`ViewContainerRef`

##### cdr

`ChangeDetectorRef`

#### Returns

[`ForFormArrayItemsDirective`](../wiki/Class.ForFormArrayItemsDirective)

## Methods

### ngAfterViewInit()

> **ngAfterViewInit**(): `void`

Defined in: [packages/angular/form-system/src/lib/directives/array/for-form-array-items.directive.ts:55](https://gitlab.com/rxap/packages/-/blob/36b0e9732b24717840935712e316593ff6aba795/packages/angular/form-system/src/lib/directives/array/for-form-array-items.directive.ts#L55)

A callback method that is invoked immediately after
Angular has completed initialization of a component's view.
It is invoked only once when the view is instantiated.

#### Returns

`void`

#### Implementation of

`AfterViewInit.ngAfterViewInit`

***

### ngOnDestroy()

> **ngOnDestroy**(): `void`

Defined in: [packages/angular/form-system/src/lib/directives/array/for-form-array-items.directive.ts:75](https://gitlab.com/rxap/packages/-/blob/36b0e9732b24717840935712e316593ff6aba795/packages/angular/form-system/src/lib/directives/array/for-form-array-items.directive.ts#L75)

A callback method that performs custom clean-up, invoked immediately
before a directive, pipe, or service instance is destroyed.

#### Returns

`void`

#### Implementation of

`OnDestroy.ngOnDestroy`
