UNPKG

ng-form-group-validation-messages

Version:

A simple validation library for Angular

21 lines (20 loc) 916 B
import { ElementRef } from '@angular/core'; import { NgControl } from '@angular/forms'; import { BehaviorSubject } from 'rxjs'; import * as i0 from "@angular/core"; export declare class NgValidationComponent { customMessages: any; label: string; formControl: NgControl; formControlElement: ElementRef; formGroup: ElementRef; isControlError: boolean; requiredStar: boolean; errorMsg: BehaviorSubject<string>; constructor(customMessages?: any); ngAfterViewInit(): void; get validator(): boolean | undefined; getErrorMessage(formControl: NgControl, field: string): any; static ɵfac: i0.ɵɵFactoryDeclaration<NgValidationComponent, [{ optional: true; }]>; static ɵcmp: i0.ɵɵComponentDeclaration<NgValidationComponent, "validate", never, { "label": { "alias": "label"; "required": false; }; }, {}, ["formControl", "formControlElement"], ["*"], true, never>; }