closest div in angular js 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')
}