stop propagation ajavscript code example
Example 1: event .stoppropagation
event.stopPropagation();
Example 2: js propagation stop
<div (click)="func($event)">
<span>oi</span>
</div>
func(e?)
{
if(e) e.stopPropagation();
}
event.stopPropagation();
<div (click)="func($event)">
<span>oi</span>
</div>
func(e?)
{
if(e) e.stopPropagation();
}