Tisamu
10/3/2017 - 10:02 AM

Get Native Element of Angular Component

Get Native Element of Angular Component

constructor(private elRef: ElementRef){} // Reference ElementRef in Constructor

console.log(this.elRef.nativeElement); // This will ouput the Component Host Element