<div (click)="parentAction()">
<div (click)="childAction()"></div>
</div>
I want to trigger childAction
only here but both parentAction
and childAction
is getting executed. How can I stop parentAction
in this?
<div (click)="parentAction()">
<div (click)="childAction()"></div>
</div>
I want to trigger childAction
only here but both parentAction
and childAction
is getting executed. How can I stop parentAction
in this?
<div (click)="parentAction()">
<div (click)="$event.stopPropagation();childAction()"></div>
</div>