[Solved] how to deal with multiple possible null on angular template


Dealing with null property paths at Angular

1. Using safe navigation operator:

The safe navigation operator (?) means that the employer field is
optional and if undefined, the rest of the expression should be
ignored.

<p>Employer: {{employer?.companyName}}</p>

2. Using ngIf

Removes or recreates a portion of the DOM tree based on the
showSection expression.

<section *ngIf="showSection">

Reference Angular Docs

solved how to deal with multiple possible null on angular template