Answers for "prevent the child event from triggering the parent element angular 5"

0

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>
Posted by: Guest on August-26-2020

Code answers related to "prevent the child event from triggering the parent element angular 5"

Browse Popular Code Answers by Language