prevent the child event from triggering the parent element angular 5
snippet in html

prevent the child event from triggering the parent element angular 5

user8983

Use the stopPropagation method on the angular $event object:

<div ng-click="parent()">
  <div ng-click="d(); $event.stopPropagation();"></div>
</div>