What are the core components of an Angular application?
n Angular application mainly consists of:
- Modules (NgModules) – containers for a cohesive block of code
- Components – control views (HTML + logic)
- Templates – HTML with Angular syntax
- Services – for business logic and reusable code
- Directives – modify the DOM
- Routing – navigation between views
Real-Time Example:
In a banking app:
- A LoginComponent
- A DashboardComponent
- A UserService to manage user data
- AppRoutingModule for navigation between login and dashboard