I want to perform a click on an element of html page from its component class.
I have obtain the reference of the element in component class like this
@ViewChild('secondForm') input: ElementRef;
Now I want to perform a click on this input from a function lets say clickOnInput like this
public clickOnInput(){
this.input.click() // I cannot find this function,
}
Is there any way or any other method to click on html elements from Angular's component class?