30 lines
744 B
Markdown
30 lines
744 B
Markdown
## Angular Basics – Components & CLI
|
||
|
||
### Angular CLI
|
||
Angular CLI is a command-line tool that helps in:
|
||
- Creating projects
|
||
- Generating components
|
||
- Running development server
|
||
|
||
ng new angular-app
|
||
ng serve
|
||
|
||
### Angular Project Structure
|
||
|
||
Key folders:
|
||
- src/app → Application logic
|
||
- app.component.ts → Main component
|
||
- app.module.ts → Root module
|
||
|
||
### Component Lifecycle (Overview)
|
||
- ngOnInit()
|
||
- ngOnDestroy()
|
||
These lifecycle hooks control how components behave during creation and destruction.
|
||
|
||
### Practical Understanding
|
||
- Explored project folders
|
||
- Studied default component files
|
||
- Understood how Angular loads the root component
|
||
|
||
### Learning Outcome
|
||
- Gained confidence in understanding Angular project structure and CLI usage. |