UNPKG

ngx-formcontrol-errors-msgs

Version:

A directive for showing errors in Angular form controls on reactive forms

12 lines (11 loc) 392 B
import { ValidationErrors } from '@angular/forms'; import { ErrorMessage } from '../error-msg-component-factory/error-msg-component'; export interface ErrorMsgParser { /** * Method to parse ValidationErrors into a readable string * to be displayed to the user. * * @param error - Validation error to parse */ parse(error: ValidationErrors): ErrorMessage[]; }