June 2018
Intermediate to advanced
348 pages
8h 19m
English
Angular components need more explicit configuration and some (in some cases confusing) characters in the template. You can put the template in a separate file, or for simpler components, you can include the template inline:
/* product-list.component.ts */ @Component({ selector: 'product-list', template: `<div><product-detail *ngFor="let thing of things" [product]="product" /></div>` }) export class ProductList { public products: Product[]; }
Read now
Unlock full access