Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // LECTURE 05: Templates, Interpolation and Directives
- // *ngFor DIRECTIVE
- // I. pm/src/app/products/product-list.component.html
- // 1. add tr element in the table body and specify the *ngFor directive
- <tr *ngFor='let product of products'>
- <td></td>
- <td>{{product.productName}}</td>
- <td>{{product.productCode}}</td>
- <td>{{product.releaseDate}}</td>
- <td>{{product.price}}</td>
- <td>{{product.starRating}}</td>
- </tr>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement