2

This might be a silly question but what does a # mean when it is directly inside a html element in angular? For example: div #messagesContainer class="myClass"></div>

  • 1
    https://stackoverflow.com/questions/45250259/what-is-auto-attribute-here-and-why-it-is-required/45251464#45251464 – yurzui Oct 05 '20 at 10:45
  • Does this answer your question? [What's #abc called in component?](https://stackoverflow.com/questions/60482249/whats-abc-called-in-component) – Derek Wang Oct 05 '20 at 10:48

1 Answers1

2

This feature is called template reference variables. For more information you can read this Angular - Template reference variables

Akora
  • 756
  • 7
  • 22