UNPKG

@edersondev/ngx-form-error-message

Version:

Este pacote serve para controlar as mensagens de erro do formulário reativo do angular

17 lines (16 loc) 697 B
import { FormControl } from '@angular/forms'; import { ElementRef } from '@angular/core'; import * as i0 from "@angular/core"; export declare class NgxErrorMessageDirective { private errors; private _elementRef; formControl: FormControl | undefined; customMessage: any; private destroy$; constructor(errors: any, _elementRef: ElementRef); ngOnInit(): void; ngOnDestroy(): void; setTextError(): string; static ɵfac: i0.ɵɵFactoryDeclaration<NgxErrorMessageDirective, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<NgxErrorMessageDirective, "[errorMessage]", never, { "formControl": "errorMessage"; "customMessage": "customMessage"; }, {}, never>; }