2
0
Fork 0
Vmeda.Online/src/components/input-errors/core-input-errors.html

8 lines
502 B
HTML
Raw Normal View History

2018-05-17 14:31:19 +00:00
<div class="core-input-error-container" role="alert" *ngIf="(formControl && formControl.dirty && !formControl.valid) || errorText">
<ng-container *ngIf="formControl && formControl.dirty && !formControl.valid">
<ng-container *ngFor="let error of errorKeys">
<div *ngIf="formControl.hasError(error)" class="core-input-error">{{errorMessages[error]}}</div>
</ng-container>
2017-12-18 09:48:04 +00:00
</ng-container>
2018-05-17 14:31:19 +00:00
<div *ngIf="errorText" class="core-input-error">{{ errorText }}</div>
</div>