Files
Harshit-Sachdev/Week-3/Day-4/angular-basics.md

30 lines
744 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
## 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.