elemen terdekat sudut

constructor(private elRef: ElementRef){}

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