Here is the JSON data that I am dealing with:
{
"id": 43,
"dataEvento": "2022-09-01T00:00:00.000+0000",
"dataInvio": null,
"idComunicazioneAssociata": null,
"certificatoMedico": []
}
I have tried using a condition in the template but it doesn't seem to work as intended.
<ng-container *ngIf="segnalazione.certificatoMedico !== []">
.............
</ng-container>
I am aiming to display the ng-container
only when there is actual data in the certificatoMedico
field.
If you have any suggestions or solutions on how to achieve this, please let me know as my current approach is not yielding the desired result.
Thank you.