Am currently working on angular 2 web application. Actually whenever i'm double click the submit button.Action takes place two time. So I want to implement the Jquery .on() .of() method.
I know the logic. We can disable/enable the button with the flag while click the submit button.
clickFunction()
{
isdisabled=false;// disable button
if(isclicked)
//service call back & clear the inputs
isdisabled = true;//enable button
}
But I don't want do it manually. So any idea about to use the way of jQuery .on() and .off() in angular 2??