viewchild pick nearest element angular 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')
}