Reference of Id or Class in other Component

Dear Community,

how can i get the id / class of a html object in another component?

Tab Group with different Tab Buttons
Each of the Tab Buttons have a Id
I want in another component (typscript) get a access to the id or class to change the style on ngOnInit

Please don’t do this.

Encapsulation is a crucial part of components. Use property binding instead, so that the public interface of your components are explicitly declared.