Components
Combine behavior, a template, and styles into a reusable UI unit.
- Component
Understand how Angular components combine TypeScript logic, HTML templates, styles, inputs, outputs, and lifecycle behavior into reusable UI building blocks.
- Dynamic Component Creation
Create and insert components at runtime using ViewContainerRef.
- Host Bindings and Host Listeners
Bind host properties and react to host events in components and directives.
- Smart and Presentational Components
Separate data orchestration from reusable UI presentation.
- Use Lifecycle Hooks Carefully
Run setup and cleanup work at the correct component stage.
- View Encapsulation
Understand Emulated, Shadow DOM, and None style encapsulation modes.