- 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.
推薦閱讀
- 通信網絡基礎與設備
- CorelDRAW X6 中文版圖形設計實戰從入門到精通
- 物聯網工程規劃技術
- 物聯網檢驗檢測技術
- OpenLayers Cookbook
- TCP/IP入門經典(第5版)
- Go Web Scraping Quick Start Guide
- 面向物聯網的嵌入式系統開發:基于CC2530和STM32微處理器
- 物聯網與無線傳感器網絡
- 中小型局域網組建、管理與維護實戰
- 計算機網絡原理與應用技術
- 世界互聯網發展報告·2019
- 數字調制解調技術的MATLAB與FPGA實現:Altera/Verilog版(第2版)
- Microsoft Power Platform Enterprise Architecture
- 局域網組成實踐