1

I have following html markup

<div class="myDiv docTypeDesc">
     <div data-ng-click="setDocumentType(type)"> {{type.name}}
          <i data-ng-click="$event.stopPropagation()" data-ng-show ="type.description && type.description != ''"  class="icon-info-sign icon-large hand hintModal bottomRight" style="float: right;padding: 2px 7px 0 0;">
               <div class="hintModal_container animated fadeInBottom"> 
                     {{ type.description }}
               </div>
           </i>
      </div>

I dont want the click of 'i' to propagate to parent data-ng-click. I tried the above thing and also tried returning false from a scope function but no good, as this scope function of i's click is not getting called and the call goes to parent's ng-click

1 Answers1

0

Sounds like you want the i's click to eventually do something. Set that up. What if you put an actual method call on the i like handleEvent($event);

scope.handleEvent = function(e){
e.stopPropagation();
}

Seems the same, I'm just curious.

Jason
  • 309
  • 2
  • 14