closes #2458
This commit is contained in:
parent
4f81a7ee8c
commit
94b8793d70
|
@ -1244,9 +1244,13 @@ figure.image-display
|
||||||
:marked
|
:marked
|
||||||
### Referencing a template reference variable
|
### Referencing a template reference variable
|
||||||
|
|
||||||
We can reference a template reference variable on the same element, on a sibling element, or on
|
We can refer to a template reference variable _anywhere_ in the current template.
|
||||||
any child elements.
|
.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:
|
Here are two other examples of creating and consuming a Template reference variable:
|
||||||
+makeExample('template-syntax/ts/app/app.component.html', 'ref-phone')(format=".")
|
+makeExample('template-syntax/ts/app/app.component.html', 'ref-phone')(format=".")
|
||||||
:marked
|
:marked
|
||||||
|
|
Loading…
Reference in New Issue