docs(template-syntax): correct ref var scope per #2458 (#2602)

closes #2458
This commit is contained in:
Ward Bell 2016-10-13 16:26:41 -07:00 committed by GitHub
parent 4f81a7ee8c
commit 94b8793d70
1 changed files with 6 additions and 2 deletions

View File

@ -1244,9 +1244,13 @@ figure.image-display
:marked
### Referencing a template reference variable
We can reference a template reference variable on the same element, on a sibling element, or on
any child elements.
We can refer to a template reference variable _anywhere_ in the current template.
.l-sub-section
:marked
Do not define the same variable name more than once in the same template.
The runtime value will be unpredictable.
:marked
Here are two other examples of creating and consuming a Template reference variable:
+makeExample('template-syntax/ts/app/app.component.html', 'ref-phone')(format=".")
:marked