angular 5 get closest element to click code example
Example: angular closest element
constructor(private elRef: ElementRef){}
ngOnInit() {
const parentElement = this.elRef.nativeElement.closest('.parent-element-class')
}
constructor(private elRef: ElementRef){}
ngOnInit() {
const parentElement = this.elRef.nativeElement.closest('.parent-element-class')
}