Reference vars
Last updated
What is Reference vars?
Template reference variables help you use data from one part of a template in another part of the template. A template variable can refer to a DOM element within a template, component or directive. In the template, use the hash symbol, #, to declare a template reference variable.
Free resources to learn Reference vars
- Official docsReference Variables
More in stage 9: Directives
Reference vars: common questions
Can I learn Reference vars in Hindi?
This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain Reference vars in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.
Is this Reference vars tutorial for beginners?
It is lesson 46 of 158 in the free Angular roadmap, in stage 9, Directives. If you are new to Angular, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.