Zakładają w uproszczeniu, że mam kod w Angularze 2 jak poniżej w jaki sposób mogę generować wiersz <tr *ngFor="let subscriptionServiceItem of serviceItemsSet.subscriptionServiceItems"> w pętli warunkowo w zależności od subscriptionServiceItem.IsArchived? ngFor razem z ngIf nie mogą istnieć wspólnie w jednym elemencie.
<!-- Service Items Sets -->
<tbody *ngFor="let serviceItemsSet of customer.serviceItemsSets">
<!-- Subscription Service Items -->
<tr *ngFor="let subscriptionServiceItem of serviceItemsSet.subscriptionServiceItems">
<td class="text-center text-danger status-icon-width">
<i *ngIf="subscriptionServiceItem.isBlocked" class="glyphicon glyphicon-remove-circle text-danger" title="Zablokowany"></i>
</td>
</tr>
</tbody>