Is it possible to access the value of the Address object within an interface in Angular using *ngFor?
export interface User {
id: number;
name: string;
username: string;
email: string;
address: Address;
}
export interface Address {
street: string;
suite: string;
city: string;
zipcode: string;
}
<div *ngFor="let oneuser of table">
<p>{{oneuser.id}}</p>
<p>{{oneuser.name}}</p>
<p>{{oneuser.username}}</p>
<p>{{oneuser.email}}</p>
<p>{{oneuser.address.street}}</p>
<p>{{oneuser.address.suite}}</p>
<p>{{oneuser.address.city}}</p>
<p>{{oneuser.address.zipcode}}</p>
<hr>
</div>