I have a set of data which includes IDs, versions, and user details for Paul and Peter. See below:
var data = {
id: 1
version: 1
user: [
{
name: 'paul'
},
{
name: 'peter'
}
],
}
My goal is to display the names listed in the data. However, when I attempt to do so using the code snippet below, nothing appears on the screen:
<ul *ngFor="let dat of data">
<li>
{{ dat.user.name }}
</li>
</ul>
There are no visible errors being thrown either...
Any suggestions on how to resolve this issue?