mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2026-11-28 01:46:57 +08:00
Co-authored-by: nilbuild <4921183+nilbuild@users.noreply.github.com>
8 lines
623 B
Markdown
8 lines
623 B
Markdown
# Encapsulation
|
|
|
|
Encapsulation determines how the styles defined in a component are applied to the rest of the application. It offers three distinct strategies: Emulated, which uses shadow-piercing CSS to scope styles to the component; ShadowDom, which leverages the native browser Shadow DOM API for true style isolation; and None, which applies component styles globally to the entire document.
|
|
|
|
Visit the following resources to learn more:
|
|
|
|
- [@official@Style Scoping](https://angular.dev/guide/components/styling#style-scoping)
|
|
- [@official@Component Encapsulation](https://angular.dev/api/core/Component#encapsulation) |