From 404e90dd296aa683487b8990e77feebcd202a033 Mon Sep 17 00:00:00 2001 From: Alessio Pelliccione Date: Wed, 19 Nov 2025 18:09:35 +0100 Subject: [PATCH] docs: add style binding example to style guide Adds a parallel example for style bindings alongside the existing class binding example, demonstrating the preferred syntax of [style.property] and [style] over [ngStyle] directive. (cherry picked from commit 7e5fca2608a46972c3bf2a95c14624a1a76fda14) --- adev/src/content/best-practices/style-guide.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/adev/src/content/best-practices/style-guide.md b/adev/src/content/best-practices/style-guide.md index 11e02dedfdf..5cffdd32a54 100644 --- a/adev/src/content/best-practices/style-guide.md +++ b/adev/src/content/best-practices/style-guide.md @@ -222,12 +222,15 @@ Prefer `class` and `style` bindings over using the [`NgClass`](/api/common/NgCla ```html
+
+
+
``` Both `class` and `style` bindings use a more straightforward syntax that aligns closely with