One of the fist things we learn in angular is how to handle events. But many of us just learn how to do…