I'm having this issue with the tr
tag in my code snippet below:
<tr *ngFor="let data of list| paginate:{itemsPerPage: 10, currentPage:p} ; let i=index " *ngIf="data.status=='1'" >
<td>
</td>
<td>
</td>
</tr>
I am trying to display the tr
only when
*ngIf="data.status=='1'"
is true.
However, I encountered the following error:
Can't have multiple template bindings on one element. Use only one attribute prefixed with *
If anyone has a solution for this problem, I would greatly appreciate it. Thank you!