fix(docs-infra): update glossary to include the term template-input-variable (#41632)

Template input variables are now described in the glossary.

PR Close #41632
This commit is contained in:
Andrew J Asche 2021-04-12 21:17:09 -05:00 committed by Alex Rickabaugh
parent 744bd2b64f
commit 23f6b76d1a
1 changed files with 21 additions and 0 deletions

View File

@ -964,6 +964,27 @@ The following example defines a template reference variable named `#phone`.
For more information, see the [Template reference variable](guide/template-reference-variables) guide.
{@a template-input-variable}
## template input variable
A template input variable is a variable you can reference within a single instance of the template. You declare a template input variable using the `let` keyword as in `let customer`.
```
<tr *ngFor="let customer of customers;">
<td>{{customer.customerNo}}</td>
<td>{{customer.name}}</td>
<td>{{customer.address}}</td>
<td>{{customer.city}}</td>
<td>{{customer.state}}</td>
<button (click)="selectedCustomer=customer">Select</button>
</tr>
```
Read and learn more about [template input variables](guide/template-reference-variables#template-input-variable).
{@a token}
## token