UNPKG

@ngx-formly/core

Version:

Formly is a dynamic (JSON powered) form library for Angular that bring unmatched maintainability to your application's forms.

24 lines (23 loc) 1.22 kB
import { OnChanges } from '@angular/core'; import { FormlyConfig } from '../services/formly.config'; import { FormlyFieldConfig } from '../models'; import { Observable } from 'rxjs'; import * as i0 from "@angular/core"; /** * The `<formly-validation-message>` component renders the error message of a given `field`. */ export declare class FormlyValidationMessage implements OnChanges { private config; /** The field config. */ field: FormlyFieldConfig; errorMessage$: Observable<string>; constructor(config: FormlyConfig); ngOnChanges(): void; get errorMessage(): string | Observable<string>; static ɵfac: i0.ɵɵFactoryDeclaration<FormlyValidationMessage, never>; static ɵcmp: i0.ɵɵComponentDeclaration<FormlyValidationMessage, "formly-validation-message", never, { "field": { "alias": "field"; "required": false; }; }, {}, never, never, true, never>; } export declare class LegacyFormlyValidationMessage extends FormlyValidationMessage { static ɵfac: i0.ɵɵFactoryDeclaration<LegacyFormlyValidationMessage, never>; static ɵcmp: i0.ɵɵComponentDeclaration<LegacyFormlyValidationMessage, "formly-validation-message", never, {}, {}, never, never, false, never>; }