Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

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>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #prevent #child #event #triggering #parent #element #angular
ADD COMMENT
Topic
Name
7+6 =