<div class="row" *ngIf="teamMembers?.length > 0">
This checks first if teamMembers has a value and if teamMembers doesn’t have a value, it doesn’t try to access length of undefined because the first part of the condition already fails.
<div class="row" *ngIf="teamMembers?.length > 0">
This checks first if teamMembers has a value and if teamMembers doesn’t have a value, it doesn’t try to access length of undefined because the first part of the condition already fails.