I am using *ngFor
to loop through the data and generate a dynamic table. But i only have access to the values of the object not the keys. How do you access the object keys using *ngFor
WITHOUT USING PIPES
export class AppComponent {
users: {}[] = [{
firstName: 'John',
lastName: 'Doe',
email: 'johndoe@example.com'
},
{
firstName: 'Jane',
lastName: 'Doe',
email: 'janedoe@example.com'
},
{
firstName: 'Mary',
lastName: 'Doe',
email: 'marydoe@example.com'
}
];
}