# 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 `