From e3d2f46bbdc27b57011b57247894f85297f54923 Mon Sep 17 00:00:00 2001 From: Kapunahele Wong Date: Fri, 21 Jun 2019 15:31:19 -0400 Subject: [PATCH] docs: move template ref vars doc to concepts section clarify, add scope section, and update headers (#31195) Fixes #31186. This commit adds more context about the behavior of template reference variables in nested templates and moves doc into concepts section. PR Close #31195 --- .../src/app/app.component.css | 14 ++ .../src/app/app.component.html | 60 +++++++- .../src/app/app.component.ts | 36 ++++- .../guide/template-reference-variables.md | 143 ++++++++++++++---- aio/content/navigation.json | 10 +- 5 files changed, 226 insertions(+), 37 deletions(-) diff --git a/aio/content/examples/template-reference-variables/src/app/app.component.css b/aio/content/examples/template-reference-variables/src/app/app.component.css index e69de29bb2..9a9e6dc50f 100644 --- a/aio/content/examples/template-reference-variables/src/app/app.component.css +++ b/aio/content/examples/template-reference-variables/src/app/app.component.css @@ -0,0 +1,14 @@ +h3 { + font-weight: 700; +} + +pre, .wrapper { + background-color: rgb(240, 250, 250); + padding: 1rem; + border: 1px solid #444; +} + +input { + margin: .5rem; + padding: .5rem; +} diff --git a/aio/content/examples/template-reference-variables/src/app/app.component.html b/aio/content/examples/template-reference-variables/src/app/app.component.html index d335a33956..5458d96ad3 100644 --- a/aio/content/examples/template-reference-variables/src/app/app.component.html +++ b/aio/content/examples/template-reference-variables/src/app/app.component.html @@ -39,8 +39,7 @@

Reference variables, forms, and NgForm

-