How can I select an element in a component template? Technology Community › Category: Angular › How can I select an element in a component template? 0 Vote Up Vote Down VietMX Staff asked 4 years ago You can get a handle to the DOM element via ElementRef by injecting it into your component’s constructor: constructor(myElement: ElementRef) { ... }