The Person
Object has a field called schoolId
, but the School
object (not shown here) contains the schoolName
. I want to display the schoolName
in the table data cell instead of the schoolId
from the Person
Object. How can I achieve this?
<tr *ngFor="let person of this.persons">
<td >{{person?.schoolId}}</td>
</tr>