UNPKG

ngx-error-message

Version:

A package to display error messages in angular forms

23 lines (22 loc) 1.19 kB
import { OnInit } from '@angular/core'; import { NgControl } from '@angular/forms'; import { ClassNames, ErrorWhenType } from './ngx-error-message-interfaces'; import * as i0 from "@angular/core"; export declare class NgxErrorMessageComponent implements OnInit { classNames: ClassNames; fieldName: string; ngControl: NgControl; when: ErrorWhenType | ErrorWhenType[]; patternKey?: string; protected lang?: string; private readonly translate; private readonly elementRef; private readonly renderer; private readonly destroy$; private previousErrorState; get hasError(): boolean; ngOnInit(): void; private updateErrorContainer; static ɵfac: i0.ɵɵFactoryDeclaration<NgxErrorMessageComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<NgxErrorMessageComponent, "ngx-error-message", never, { "classNames": { "alias": "classNames"; "required": false; }; "fieldName": { "alias": "fieldName"; "required": false; }; "ngControl": { "alias": "ngControl"; "required": false; }; "when": { "alias": "when"; "required": false; }; "patternKey": { "alias": "patternKey"; "required": false; }; }, {}, never, never, true, never>; }