src/lib/dynamic-form-field/dynamic-form-control-errors/dynamic-form-control-errors.component.ts
DynamicFormControlWrapperBase
selector | bs-dynamic-form-control-errors |
templateUrl | ./dynamic-form-control-errors.component.html |
constructor(containerRef: ViewContainerRef, validationService: DynamicFormValidationService)
|
|||||||||
Parameters :
|
import { Component, ViewContainerRef } from '@angular/core';
import { DynamicFormControlWrapperBase, DynamicFormValidationService } from '@dynamic-forms/core';
@Component({
selector: 'bs-dynamic-form-control-errors',
templateUrl: './dynamic-form-control-errors.component.html',
})
export class BsDynamicFormControlErrorsComponent extends DynamicFormControlWrapperBase {
constructor(
protected override containerRef: ViewContainerRef,
protected override validationService: DynamicFormValidationService,
) {
super(containerRef, validationService);
}
}
<ng-template #container></ng-template>
<div *ngIf="showErrors" class="dynamic-form-field-errors invalid-feedback">{{ errorMessage }}</div>