ngx-show-form-errors
Version:
An Angular library providing a directive to automatically display form error messages.
19 lines (16 loc) • 922 B
TypeScript
import * as i0 from '@angular/core';
import { AfterViewInit, OnDestroy, ElementRef } from '@angular/core';
import { NgControl, NgForm, FormGroupDirective } from '@angular/forms';
declare class NgxShowFormErrorsDirective implements AfterViewInit, OnDestroy {
private readonly elementRef;
private readonly ngControl;
private readonly ngForm;
private readonly formGroupDirective;
private showFormErrors?;
constructor(elementRef: ElementRef, ngControl: NgControl, ngForm: NgForm, formGroupDirective: FormGroupDirective);
ngAfterViewInit(): void;
ngOnDestroy(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NgxShowFormErrorsDirective, [null, { optional: true; }, { optional: true; }, { optional: true; }]>;
static ɵdir: i0.ɵɵDirectiveDeclaration<NgxShowFormErrorsDirective, "[ngxShowFormErrors]", never, {}, {}, never, never, true, never>;
}
export { NgxShowFormErrorsDirective };