@rxap/ngx-error
Version:
This package provides a comprehensive error handling solution for Angular applications, including interceptors, services, and UI components to display different types of errors in a user-friendly dialog. It supports handling of generic errors, HTTP errors
104 lines (53 loc) • 3.21 kB
Markdown
[**/ngx-error v19.0.3**](../README.md)
***
[/ngx-error](../globals.md) / ErrorDialogComponent
# Class: ErrorDialogComponent
Defined in: [error-dialog/error-dialog.component.ts:47](https://gitlab.com/rxap/packages/-/blob/15b5fab8912b1042ea325e7f4d98844416018df1/packages/angular/error/src/lib/error-dialog/error-dialog.component.ts#L47)
## Implements
- `AfterViewInit`
## Constructors
### new ErrorDialogComponent()
> **new ErrorDialogComponent**(): [`ErrorDialogComponent`](ErrorDialogComponent.md)
#### Returns
[`ErrorDialogComponent`](ErrorDialogComponent.md)
## Properties
### activeIndex
> `readonly` **activeIndex**: `WritableSignal`\<`number`\>
Defined in: [error-dialog/error-dialog.component.ts:54](https://gitlab.com/rxap/packages/-/blob/15b5fab8912b1042ea325e7f4d98844416018df1/packages/angular/error/src/lib/error-dialog/error-dialog.component.ts#L54)
***
### closeDialog
> **closeDialog**: `EventEmitter`\<`void`\>
Defined in: [error-dialog/error-dialog.component.ts:61](https://gitlab.com/rxap/packages/-/blob/15b5fab8912b1042ea325e7f4d98844416018df1/packages/angular/error/src/lib/error-dialog/error-dialog.component.ts#L61)
***
### componentPortal
> `readonly` **componentPortal**: `Signal`\<`ComponentPortal`\<[`IErrorDialogComponent`](../interfaces/IErrorDialogComponent.md)\<`any`\>\>\>
Defined in: [error-dialog/error-dialog.component.ts:64](https://gitlab.com/rxap/packages/-/blob/15b5fab8912b1042ea325e7f4d98844416018df1/packages/angular/error/src/lib/error-dialog/error-dialog.component.ts#L64)
***
### data
> `readonly` **data**: `Signal`\<`any`[]\>
Defined in: [error-dialog/error-dialog.component.ts:52](https://gitlab.com/rxap/packages/-/blob/15b5fab8912b1042ea325e7f4d98844416018df1/packages/angular/error/src/lib/error-dialog/error-dialog.component.ts#L52)
***
### dialog
> **dialog**: `ElementRef`\<`HTMLDialogElement`\>
Defined in: [error-dialog/error-dialog.component.ts:50](https://gitlab.com/rxap/packages/-/blob/15b5fab8912b1042ea325e7f4d98844416018df1/packages/angular/error/src/lib/error-dialog/error-dialog.component.ts#L50)
***
### displayedButtons
> `readonly` **displayedButtons**: `Signal`\<`number`[]\>
Defined in: [error-dialog/error-dialog.component.ts:55](https://gitlab.com/rxap/packages/-/blob/15b5fab8912b1042ea325e7f4d98844416018df1/packages/angular/error/src/lib/error-dialog/error-dialog.component.ts#L55)
## Methods
### close()
> **close**(): `void`
Defined in: [error-dialog/error-dialog.component.ts:83](https://gitlab.com/rxap/packages/-/blob/15b5fab8912b1042ea325e7f4d98844416018df1/packages/angular/error/src/lib/error-dialog/error-dialog.component.ts#L83)
#### Returns
`void`
***
### ngAfterViewInit()
> **ngAfterViewInit**(): `void`
Defined in: [error-dialog/error-dialog.component.ts:79](https://gitlab.com/rxap/packages/-/blob/15b5fab8912b1042ea325e7f4d98844416018df1/packages/angular/error/src/lib/error-dialog/error-dialog.component.ts#L79)
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`