Submodule 19.3: Angular Components
... Components Part 1...
Adding a Menu Component
Next, open the CLI and use the command shown below to generate a new component named menu:
ng generate component menu
This will create the necessary files for the menu component in a folder named menu, and also import this component into app.module.ts
.
So with that, Angular-cli has set up the Menu Component to be available to our application.
- See more about Angular Components