How do you select an element in component template?

Posted by Jessica Taylor | Updated on

You can control any DOM element via ElementRef by injecting it into your component’s constructor. i.e, The component should have constructor with ElementRef parameter,

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers