UNPKG

@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

21 lines (20 loc) 986 B
import { ComponentPortal } from '@angular/cdk/portal'; import { AfterViewInit, ElementRef, EventEmitter, Signal } from '@angular/core'; import * as i0 from "@angular/core"; export interface IErrorDialogComponent<Error = any> { error: Error; } export declare class ErrorDialogComponent implements AfterViewInit { dialog: ElementRef<HTMLDialogElement>; readonly data: Signal<any[]>; readonly activeIndex: import("@angular/core").WritableSignal<number>; readonly displayedButtons: Signal<number[]>; closeDialog: EventEmitter<void>; private readonly component; private readonly injector; readonly componentPortal: Signal<ComponentPortal<IErrorDialogComponent<any>>>; ngAfterViewInit(): void; close(): void; static ɵfac: i0.ɵɵFactoryDeclaration<ErrorDialogComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<ErrorDialogComponent, "rxap-error-dialog", never, {}, { "closeDialog": "closeDialog"; }, never, never, true, never>; }