From 43bad26b73aaa98c8cd6dc78dec0796ed62fc47f Mon Sep 17 00:00:00 2001 From: Kam Date: Tue, 3 Nov 2026 20:59:06 +0300 Subject: [PATCH] docs: fix the ng-container binding note in the templates guide The guide said Angular ignores all attribute bindings and event listeners on ng-container. The compiler now rejects attribute bindings on it, and a directive host attribute binding fails at runtime. Property bindings only work for directive inputs, and unknown ones are reported as errors. Class bindings, style bindings, DOM event listeners and static attributes are still ignored, so describe each case. (cherry picked from commit b223af6b84c2ab953d924a4b746147e06e1847bd) --- adev/src/content/guide/templates/ng-container.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adev/src/content/guide/templates/ng-container.md b/adev/src/content/guide/templates/ng-container.md index fefbea4216b..6eacd3c1e7c 100644 --- a/adev/src/content/guide/templates/ng-container.md +++ b/adev/src/content/guide/templates/ng-container.md @@ -22,7 +22,7 @@ You can apply directives to `` to add behaviors or configuration to a part of your template. -Angular ignores all attribute bindings and event listeners applied to ``, including those applied via directive. +Angular ignores class bindings, style bindings, DOM event listeners, and static attributes applied to ``, including those applied via directive. Attribute bindings cause errors, and property bindings only work for directive inputs. ## Using `` to display dynamic contents