@ViewChild('myButton') myButton : ElementRef; triggerClick() { let el: HTMLElement = this.myButton.nativeElement as HTMLElement; setTimeout(()=> el.click(), 5000); }