AngularJs2 get the find() method in component for element <p>Here I want to check, if user click outside of my "DropdownComponent" element than hide some data. But "this.templateRef.nativeElement.find" I am not able to get "find()" method in angularJS2.</p> <pre><code>import { Component, EventEmitter, ElementRef, Output, HostListener } from '@angular/core'; export class DropdownComponent{ showValue = true; constructor(private templateRef: ElementRef) { }; @HostListener('document:click', ['$event']) handleKeyboardEvent(kbdEvent: any) { console.log("---"+ kbdEvent); var isClickedElementChildOfDropdownComponent = this.templateRef.nativeElement.find(kbdEvent.target).length &gt; 0; if(isClickedElementChildOfDropdownComponent ) { return; } this.showValue = false; } </code></pre> <p>}</p>