- 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.
推薦閱讀
- Building Django 2.0 Web Applications
- 物聯(lián)網(wǎng)安全:理論、實踐與創(chuàng)新
- 物聯(lián)網(wǎng)識別技術
- WordPress 5 Complete
- 世界互聯(lián)網(wǎng)發(fā)展報告·2019
- TD-LTE無線網(wǎng)絡規(guī)劃與設計
- 端到端QoS網(wǎng)絡設計
- 紅藍攻防:構建實戰(zhàn)化網(wǎng)絡安全防御體系
- 5G+區(qū)塊鏈
- Professional Scala
- Laravel Application Development Cookbook
- 信息技術安全評估準則:源流、方法與實踐
- NB-IoT原理和優(yōu)化
- 移動互聯(lián)網(wǎng)環(huán)境下的核心網(wǎng)剖析及演進
- 中國信息化年鑒2017