Angular engste Element

constructor(private elRef: ElementRef){}

ngOnInit() {
   const parentElement = this.elRef.nativeElement.closest('.parent-element-class')
}
Scriper