Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <table class="table">
- <thead>
- <tr>
- <th>#</th>
- <th>Code</th>
- <th>Name</th>
- <th>Price</th>
- <th>Level</th>
- </tr>
- </thead>
- <tbody>
- <tr *ngFor="let product of products, let i = index">
- <td>{{ i+1 }}</td>
- <td>{{ product.productId | code:'5' }}</td>
- <td>{{ product.productName | lowercase | uppercase }}</td>
- <td>
- <span class="price"
- [ngClass]="{'low-price': product.price<20}">
- {{ product.price | number:'2.2-2' }}
- </span>
- </td>
- <td>
- <span *ngIf="product.price<20; else high">
- LOW
- </span>
- <ng-template #high>
- <span>HIGH</span>
- </ng-template>
- </td>
- </tr>
- </tbody>
- </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement