ion-form-error-messages
Version:
An ionic 4 component that will display a list of error messages for a given reactive form formGroup object.
21 lines (20 loc) • 634 B
TypeScript
import { OnInit } from '@angular/core';
import { FormGroup } from '@angular/forms';
export declare class IonFormErrorMessagesComponent implements OnInit {
formGroup: FormGroup;
messages: {
[control: string]: {
[error: string]: string;
};
};
color: string;
control: string;
controls: string[];
readonly filteredControls: string[];
constructor();
ngOnInit(): void;
getErrors(controlKey: string): import("@angular/forms").ValidationErrors;
isAnyControlInvalid(): boolean;
isControlInvalid(controlKey: string): boolean;
objectToKeys(value: any): string[];
}