event-listener
How to disable right-click event in Angular 7?
I'm trying to disable that menu that appears on the page when the user right-clicks.
In Angular, I can catch the click event ... e Right Click, the code is not triggered.
@HostListener('click', ['$event'])
onClick(event) {
console.log(event);
}
How to create and Use custom events
Searching I found Event and CustumEvent, both of which can be used to create events, and to control event registrations, remo ... it's just an example. At the moment I want to know just like it does in modern browsers, I'm not worried about compatibility