@rxap/forms
Version:
This package provides a set of tools and directives to simplify working with Angular forms, including reactive forms, custom validators, and form directives for handling loading, submitting, and error states. It offers decorators for defining forms and co
23 lines (22 loc) • 1.14 kB
TypeScript
import { OnDestroy, OnInit, TemplateRef, ViewContainerRef } from '@angular/core';
import { ControlContainer } from '@angular/forms';
import { ValidationErrors } from '../types';
import * as i0 from "@angular/core";
/**
* @deprecated removed use the rxapControlError or rxapControlErrors directive
*/
export declare class FormControlErrorDirective implements OnInit, OnDestroy {
private readonly template;
private readonly parent;
private readonly viewContainerRef;
name: string;
errorKey: string;
private subscription?;
constructor(template: TemplateRef<{
$implicit: ValidationErrors;
}>, parent: ControlContainer, viewContainerRef: ViewContainerRef);
ngOnInit(): void;
ngOnDestroy(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<FormControlErrorDirective, [null, { host: true; skipSelf: true; }, null]>;
static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlErrorDirective, "[rxapFormControlError]", never, { "name": { "alias": "rxapFormControlErrorFrom"; "required": true; }; "errorKey": { "alias": "rxapFormControlErrorIf"; "required": true; }; }, {}, never, never, true, never>;
}