- Hands-On Full Stack Web Development with Angular 6 and Laravel 5
- Fernando Monteiro
- 105字
- 2021-07-23 19:18:54
Adding a new component
Now, we need a component to show a list of beers, since we just created a module called Beers.
Later, you will see how to use an API and an Angular service to load a list of beers; for now, we will focus on the creation of our component.
Inside of the root folder, and with the integrated VS Code Terminal, type the following command:
ng g component beers
The preceding command will generate the following structure:

The BeersModule and Component files have been created. We now have our module, template, and component file. Let's add a new route.
推薦閱讀
- 面向物聯(lián)網(wǎng)的CC2530與傳感器應(yīng)用開發(fā)
- C++黑客編程揭秘與防范
- 重新定義Spring Cloud實戰(zhàn)
- 社交電商運營策略、技巧與實操
- 走進物聯(lián)網(wǎng)
- 計算機網(wǎng)絡(luò)安全實訓(xùn)教程(第二版)
- 區(qū)塊鏈輕松上手:原理、源碼、搭建與應(yīng)用
- CCNP TSHOOT(642-832)認(rèn)證考試指南
- Working with Legacy Systems
- 物聯(lián)網(wǎng)工程導(dǎo)論(第3版)
- 物聯(lián)網(wǎng)工程概論
- 網(wǎng)絡(luò)利他行為研究:積極心理學(xué)的視角
- 轉(zhuǎn)化:提升網(wǎng)站流量和轉(zhuǎn)化率的技巧
- 基于IPv6的家居物聯(lián)網(wǎng)開發(fā)與應(yīng)用技術(shù)
- 現(xiàn)場綜合化網(wǎng)絡(luò)運營與維護:運營商數(shù)字化轉(zhuǎn)型技術(shù)與實踐