Q:

stop propagation event

event.stopPropagation();
2
$("span").click(function(event){
  event.stopPropagation();
  alert("The span element was clicked.");
});
$("p").click(function(event){
  alert("The p element was clicked.");
});
$("div").click(function(){
  alert("The div element was clicked.");
});
1
<div onclick="alert('never triggered');">
  <div onclick="event.stopPropagation(); alert('ok!');"></div>
</div>
0
<div (click)="func($event)">
	<span>oi</span>
</div>

func(e?)
{
	if(e) e.stopPropagation();
}
1

New to Communities?

Join the community