import { Renderer } from '@angular/core';
export class MyBeautifulClass implements OnInit {
constructor(private renderer: Renderer) { }
ngOnInit() {
}
getDOMElement(): void {
let element = this.renderer.selectRootElement('.my-element');
}