Component encapsulation
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: `<p><product-detail *ngFor="let thing of things" [product]="product" /></p>` }) export class ProductList { public products: Product[]; }
推薦閱讀
- 網絡教育學習指導
- Application Development with Qt Creator(Second Edition)
- 光網絡評估及案例分析
- Hands-On Chatbot Development with Alexa Skills and Amazon Lex
- 新一代物聯網架構技術:分層算力網絡
- Mastering JavaFX 10
- 中國互聯網發展報告2018
- 網管員必讀:網絡管理(第2版)
- INSTANT KineticJS Starter
- SAE原理與網絡規劃
- Getting Started with nopCommerce
- Qt5 Python GUI Programming Cookbook
- 互聯網視覺設計(全彩慕課版)
- Scala Programming Projects
- 移動應用開發技術