In this lecture you are going to learn about template reference variable, also called as local reference variable and what is its use.
A template reference variable is simply a variable which stores a reference to an HTML element in the DOM, or to a component or directive. Using reference variable, we can pass around that HTML element, component or directive in the template or to component class and use it.
Let's understand template reference variable with some examples.