I am trying to set up a table where one cell functions as a dropdown menu.
The data.field is being fetched from the backend and I want it to be displayed during rendering.
Additionally, a fList is also retrieved from the backend. When a user clicks on the cell, it should open the list as a dropdown menu. I have included the code below, but unfortunately, no dropdown menu is appearing.
<tr class="dropdown" *ngFor="let data of dataList | dataPipe">
<td class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown">{{data.field}}
<ul class="dropdown-menu" *ngFor="let f of fList">
<li>{{f}}</li>
</ul>
</td>
</tr>