If you need to customize your component, you can create an object to fit your needs.
For instance:
const names = ['John', 'Doe', 'Alice'];
const ages = [30, 25, 35];
const users = [];
for (let i = 0; i < names.length; i++) {
users.push({name: names[i], age: ages[i]});
}
console.log(users); // [{name: 'John', age: 30}, ... and so on]
In your interface, you can loop through users
to display a table, for example:
<table>
<tr *ngFor="let user of users">
<td>{{ user.name }}</td>
<td>{{ user.age }}</td>
</tr>
<table>