Is there a way to display the same HTML code based on a condition without repeating it multiple times?
I've attempted using ngIF, but it requires me to duplicate the HTML snippet three times.
<div *ngIf="data.dataUm"><dt>Data:</dt><dd>{{data.dataImplementacao|DateMoment}}</dd></
div>
<div *ngIf="data.dataDois"><dt>Data:</dt><dd>{{data.dataImplementacao|DateMoment}}</dd></
div>
<div *ngIf="data.dataTres"><dt>Data:</dt><dd>{{data.dataImplementacao|DateMoment}}</dd></
div>
So, is there a way to implement a condition in order to avoid repeating the same HTML code?