nativeelement get nearest form 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')
}