stop child from triggering parent event code example
Example: prevent the child event from triggering the parent element angular 5
Use the stopPropagation method on the angular $event object:
<div ng-click="parent()">
<div ng-click="d(); $event.stopPropagation();"></div>
</div>