find closest elementRef from elementRef angular 2 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')
}