From c879558312480426030c72ce2a44877890ef6bb9 Mon Sep 17 00:00:00 2001 From: Konrad Date: Thu, 1 Aug 2024 12:21:49 +0200 Subject: [PATCH] feat(angular/metadata): add content to the thread (#6315) * feat(angular/viewProvider): add content to the thread * feat(angular/Encapsulation): add content to the thread * feat(angular/changeDetection): add content to the thread --- .../changedetection@uYHy2yhtTm6fQkKpYx3lU.md | 15 +++++++++++++- .../encapsulation@ctigvSYeFa77y3v7m11gk.md | 20 ++++++++++++++++++- .../viewprovider@doHDoAgp7T59KGSXPpQzZ.md | 9 ++++++++- 3 files changed, 41 insertions(+), 3 deletions(-) diff --git a/src/data/roadmaps/angular/content/changedetection@uYHy2yhtTm6fQkKpYx3lU.md b/src/data/roadmaps/angular/content/changedetection@uYHy2yhtTm6fQkKpYx3lU.md index 8f8f1666a..8be0e1220 100644 --- a/src/data/roadmaps/angular/content/changedetection@uYHy2yhtTm6fQkKpYx3lU.md +++ b/src/data/roadmaps/angular/content/changedetection@uYHy2yhtTm6fQkKpYx3lU.md @@ -1 +1,14 @@ -# changeDetection \ No newline at end of file +# changeDetection + +The change-detection strategy to use for this component. + +When a component is instantiated, Angular creates a change detector, which is responsible for propagating the +component's bindings. The strategy is one of: + +- `ChangeDetectionStrategy.OnPush` sets the strategy to CheckOnce (on demand). +- `ChangeDetectionStrategy.Default` sets the strategy to CheckAlways. + +Visit the following resources to learn more: + +- [@official@Advanced component configuration](https://angular.dev/guide/components/advanced-configuration#changedetectionstrategy) +- [@official@Component - API](https://angular.dev/api/core/Component#changeDetection) diff --git a/src/data/roadmaps/angular/content/encapsulation@ctigvSYeFa77y3v7m11gk.md b/src/data/roadmaps/angular/content/encapsulation@ctigvSYeFa77y3v7m11gk.md index d6957a2a1..46109326d 100644 --- a/src/data/roadmaps/angular/content/encapsulation@ctigvSYeFa77y3v7m11gk.md +++ b/src/data/roadmaps/angular/content/encapsulation@ctigvSYeFa77y3v7m11gk.md @@ -1 +1,19 @@ -# Encapsulation \ No newline at end of file +# Encapsulation + +An encapsulation policy for the component's styling. Possible values: + +- `ViewEncapsulation.Emulated`: Apply modified component styles in order to emulate a native Shadow DOM CSS + encapsulation behavior. +- `ViewEncapsulation.None`: Apply component styles globally without any sort of encapsulation. +- `ViewEncapsulation.ShadowDom`: Use the browser's native Shadow DOM API to encapsulate styles. + +If not supplied, the value is taken from the CompilerOptions which defaults to `ViewEncapsulation.Emulated`. + +If the policy is `ViewEncapsulation.Emulated` and the component has no styles nor {@link Component#styleUrls styleUrls}, +the policy is automatically switched to `ViewEncapsulation.None`. + +Visit the following resources to learn more: + +- [@official@Style scoping](https://angular.dev/guide/components/styling#style-scoping) +- [@official@Component - API](https://angular.dev/api/core/Component#encapsulation) + diff --git a/src/data/roadmaps/angular/content/viewprovider@doHDoAgp7T59KGSXPpQzZ.md b/src/data/roadmaps/angular/content/viewprovider@doHDoAgp7T59KGSXPpQzZ.md index 3f2d7f49c..a9ddd1090 100644 --- a/src/data/roadmaps/angular/content/viewprovider@doHDoAgp7T59KGSXPpQzZ.md +++ b/src/data/roadmaps/angular/content/viewprovider@doHDoAgp7T59KGSXPpQzZ.md @@ -1 +1,8 @@ -# viewProvider \ No newline at end of file +# viewProvider + +Defines the set of injectable objects that are visible to its view DOM children. + +Visit the following resources to learn more: + +- [@official@Using the viewProviders array](https://angular.dev/guide/di/hierarchical-dependency-injection#using-the-viewproviders-array) +- [@official@Component - API](https://angular.dev/api/core/Component#viewProviders)