Check out example codes for "angular elementref parent". It will help you in understanding the concepts better.

Code Example 1

// Inject the element itself:
constructor(private elRef: ElementRef){}

// access the native elements parent:
ngOnInit() {
  console.log(this.elRef.nativeElement.parentElement);
}

Learn ReactJs, React Native from akashmittal.com