From 56cbfe32ee398cffc047fc89e1e94f4bb41d85e1 Mon Sep 17 00:00:00 2001 From: Armando Rivera Date: Thu, 4 Nov 2021 20:07:00 -0600 Subject: [PATCH 1/2] docs(template-reference-variables): traducir template reference variables doc --- .../guide/template-reference-variables.en.md | 69 +++++++++++++++++++ .../guide/template-reference-variables.md | 69 ++++++++----------- 2 files changed, 98 insertions(+), 40 deletions(-) create mode 100644 aio/content/guide/template-reference-variables.en.md diff --git a/aio/content/guide/template-reference-variables.en.md b/aio/content/guide/template-reference-variables.en.md new file mode 100644 index 0000000000000..1f3fd5db2844d --- /dev/null +++ b/aio/content/guide/template-reference-variables.en.md @@ -0,0 +1,69 @@ +# Template reference variables (`#var`) + +A **template reference variable** is often a reference to a DOM element within a template. +It can also refer to a directive (which contains a component), an element, [TemplateRef](api/core/TemplateRef), or a web component. + +
+ +See the for a working example containing the code snippets in this guide. + +
+ +Use the hash symbol (#) to declare a reference variable. +The following reference variable, `#phone`, declares a `phone` variable on an `` element. + + + +You can refer to a template reference variable anywhere in the component's template. +Here, a `