Is there a way to retrieve a property from a map and display it in a table using Angular? I keep getting [object Object] when I try to display it. Even using property.first doesn't show anything.
//model
export interface UserModel {
room: Map<number,number>
}
//service
export class UserService {
user: UserModel;
newUser: UserModel = {
room: new Map<number,number>(),
....}}
//html
<tbody>
<tr *ngFor="let user of $users | async">
<td>{{user.room}}</td> // user.room.first???
</tr>
</tbody>
Any suggestions would be greatly appreciated!