Is there a way in angular where I can select an element and do the necessary operation to it?
You can handle the DOM element via ElementRef by injecting it into your component’s constructor:
constructor(myElement: ElementRef) { ... }