diff --git a/adev/src/content/guide/components/styling.md b/adev/src/content/guide/components/styling.md index 41a44079a33..67a8cd6e304 100644 --- a/adev/src/content/guide/components/styling.md +++ b/adev/src/content/guide/components/styling.md @@ -235,7 +235,7 @@ Prefer a style binding such as `[style.--primary-color]`, which Angular namespac you go through a DOM API instead, pass the name you wrote in your styles to [`CssVarNamespacer`](api/platform-browser/CssVarNamespacer), including the leading `--`: -```angular-ts +```angular-ts {header: "profile-photo.ts"} import {Component, ElementRef, inject} from '@angular/core'; import {CssVarNamespacer} from '@angular/platform-browser'; diff --git a/packages/platform-browser/src/dom/css_var_namespacer.ts b/packages/platform-browser/src/dom/css_var_namespacer.ts index f6036bc18bd..175e7b4a628 100644 --- a/packages/platform-browser/src/dom/css_var_namespacer.ts +++ b/packages/platform-browser/src/dom/css_var_namespacer.ts @@ -14,6 +14,7 @@ import {CSS_VAR_NAMESPACE} from './dom_renderer'; * This is useful when reading or setting CSS variables dynamically in JavaScript that * were transformed by the compiler during the build. * + * @see [Using namespaced properties in TypeScript](guide/components/styling#using-namespaced-properties-in-typescript) * @publicApi 22.1 */ @Service() diff --git a/packages/platform-browser/src/dom/dom_renderer.ts b/packages/platform-browser/src/dom/dom_renderer.ts index 7dcc0e99f46..fe1cdbb7015 100644 --- a/packages/platform-browser/src/dom/dom_renderer.ts +++ b/packages/platform-browser/src/dom/dom_renderer.ts @@ -88,6 +88,7 @@ export const CSS_VAR_NAMESPACE = new InjectionToken( * * @param namespace The prefix string to use as a namespace. If not provided, it defaults * to the `APP_ID`. An underscore is appended unconditionally. + * @see [Namespacing CSS custom properties](guide/components/styling#namespacing-css-custom-properties) * @publicApi */ export function provideCssVarNamespacing(namespace?: string): EnvironmentProviders {