Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 94b8793

Browse files
authored
docs(template-syntax): correct ref var scope per #2458 (#2602)
closes #2458
1 parent 4f81a7e commit 94b8793

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

public/docs/ts/latest/guide/template-syntax.jade

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1244,9 +1244,13 @@ figure.image-display
12441244
:marked
12451245
### Referencing a template reference variable
12461246

1247-
We can reference a template reference variable on the same element, on a sibling element, or on
1248-
any child elements.
1247+
We can refer to a template reference variable _anywhere_ in the current template.
1248+
.l-sub-section
1249+
:marked
1250+
Do not define the same variable name more than once in the same template.
1251+
The runtime value will be unpredictable.
12491252

1253+
:marked
12501254
Here are two other examples of creating and consuming a Template reference variable:
12511255
+makeExample('template-syntax/ts/app/app.component.html', 'ref-phone')(format=".")
12521256
:marked

0 commit comments

Comments
 (0)