Co-authored-by: nilbuild <4921183+nilbuild@users.noreply.github.com>
9 lines
856 B
Markdown
9 lines
856 B
Markdown
# Creating Components
|
|
|
|
A component is the fundamental building block of a user interface that consists of an HTML template, a TypeScript class to handle logic, and CSS styles to define the appearance. To create one, you typically use the Angular CLI command `ng generate component` followed by the component name, which automatically scaffolds the necessary files and registers the new component within your module. Once created, you can define your application's structure by using the custom selector assigned to that component as an HTML tag within other templates.
|
|
|
|
Visit the following resources to learn more:
|
|
|
|
- [@official@Build your first Angular App](https://angular.dev/tutorials/first-app)
|
|
- [@official@Components](https://angular.dev/essentials/components)
|
|
- [@official@Angular CLI - ng generate components](https://angular.dev/guide/components) |