@rxap/forms
Version:
This package provides a set of tools and directives to simplify working with Angular forms, including reactive forms, custom validators, and form directives for handling loading, submitting, and error states. It offers decorators for defining forms and co
80 lines (42 loc) • 2.22 kB
Markdown
[**/forms v19.1.0**](../README.md)
***
[/forms](../globals.md) / FormLoadingErrorDirective
# Class: FormLoadingErrorDirective
Defined in: [packages/angular/forms/src/lib/directives/form-loading-error.directive.ts:17](https://gitlab.com/rxap/packages/-/blob/36b0e9732b24717840935712e316593ff6aba795/packages/angular/forms/src/lib/directives/form-loading-error.directive.ts#L17)
## Implements
- `AfterViewInit`
- `OnDestroy`
## Constructors
### new FormLoadingErrorDirective()
> **new FormLoadingErrorDirective**(`formDirective`, `template`, `viewContainerRef`): [`FormLoadingErrorDirective`](FormLoadingErrorDirective.md)
Defined in: [packages/angular/forms/src/lib/directives/form-loading-error.directive.ts:21](https://gitlab.com/rxap/packages/-/blob/36b0e9732b24717840935712e316593ff6aba795/packages/angular/forms/src/lib/directives/form-loading-error.directive.ts#L21)
#### Parameters
##### formDirective
[`FormDirective`](FormDirective.md)
##### template
`TemplateRef`\<\{ `$implicit`: `Error`; \}\>
##### viewContainerRef
`ViewContainerRef`
#### Returns
[`FormLoadingErrorDirective`](FormLoadingErrorDirective.md)
## Methods
### ngAfterViewInit()
> **ngAfterViewInit**(): `void`
Defined in: [packages/angular/forms/src/lib/directives/form-loading-error.directive.ts:28](https://gitlab.com/rxap/packages/-/blob/36b0e9732b24717840935712e316593ff6aba795/packages/angular/forms/src/lib/directives/form-loading-error.directive.ts#L28)
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/forms/src/lib/directives/form-loading-error.directive.ts:39](https://gitlab.com/rxap/packages/-/blob/36b0e9732b24717840935712e316593ff6aba795/packages/angular/forms/src/lib/directives/form-loading-error.directive.ts#L39)
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`