Template Reference Variable | Data Binding | Angular 12+

Published: 28 January 2022
on channel: procademy
35,903
377

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.


On this page of the site you can watch the video online Template Reference Variable | Data Binding | Angular 12+ with a duration of hours minute second in good quality, which was uploaded by the user procademy 28 January 2022, share the link with friends and acquaintances, this video has already been watched 35,903 times on youtube and it was liked by 377 viewers. Enjoy your viewing!