angular click event stop propagation code example
Example 1: angular click stop propagation
<div (click)="$event.stopPropagation()"></div>
Example 2: angular stoppropagatio
import {Directive, HostListener} from "@angular/core";
@Directive({
selector: "[click-stop-propagation]"
})
export class ClickStopPropagation
{
@HostListener("click", ["$event"])
public onClick(event: any): void
{
event.stopPropagation();
}
}