I am currently working on a Angular front end app project. Once I receive the response from the backend API, I am attempting to display an array of data in a table. If a certain condition is met, I want to show the array data contained in compte['ingroup'].
<ul class="nav nav-list " *ngFor="let compte of comptes">
<label class="groupcompte" *ngIf="{{compte['ingroup']}}.length > 0" >
{{compte['ingroup']| json}}
</label>
</ul>
My question is how can I retrieve the length of compte['ingroup'] within my condition? Thank you.