@js-sugar/angular
Version:
JS-Sugar core package (Angular)
23 lines (22 loc) • 1.01 kB
TypeScript
import { TemplateRef, ViewContainerRef, OnInit, OnDestroy } from '@angular/core';
import { NgForm, ValidationErrors } from '@angular/forms';
import * as i0 from "@angular/core";
export declare class ErrorDirective implements OnInit, OnDestroy {
private _templateRef;
private _viewContainer;
private _form;
private _embededViewRef?;
private _fieldName;
private _formStatusChangeSubscription;
private _formSubmitSubscription;
private _errors;
constructor(_templateRef: TemplateRef<any>, _viewContainer: ViewContainerRef, _form: NgForm);
ngOnInit(): void;
set fieldName(value: string);
get fieldName(): string;
get errors(): ValidationErrors | null;
ngOnDestroy(): void;
private _show;
static ɵfac: i0.ɵɵFactoryDeclaration<ErrorDirective, [null, null, { optional: true; }]>;
static ɵdir: i0.ɵɵDirectiveDeclaration<ErrorDirective, "[jssError]", ["jssError"], { "fieldName": "jssError"; }, {}, never, never, false>;
}