I have accessed to a variable called key in this html element. How do I put the key inside of the
*ngIf below: *ngIf="isSubmitted && errors.key.translations", especially the errors.key.translation part.
<div class="form-group col" *ngFor="let key of matchingKeys">
<div
*ngIf="isSubmitted && errors.key.translations"
class="invalid-feedback"
>
</div>
isSubmitted && errors.key.translationsgives inside thediv?errors.key.translationsdoes not work. What is the correct syntax?errors[key].translationserrors[key].translations