This is the syntax to use this method:
event.stopPropagation();
Example
Stop tr click function on fourth td. Use the below code for stops bubbling of an event to parent elements.
HTML
<table>
<tr ng-click="click()">
<td>1</td>
<td>2</td>
<td>3</td>
<td ng-click="fourthClick($event)">4</td>
<td>5</td>
</tr>
</table>
Angular/Javascript
$scope.fourthClick = funtion(){
event.stopPropagation();
}
I hope this blog will help for all.
THANKS