0

How to stop event propagation in JavaScript

JavaScript
<div (click)="func($event)">
	<span>oi</span>
</div>

func(e?)
{
	if(e) e.stopPropagation();
}
add comment
Suggest a different solution or add another example