3

HTML

<li ng-show="sample($event)" TestLi</li>

Javascript

$scope.sample = function($event){ //$event is undefined
//do something 
}

I've only tried passing the html element using ng-click but is there a way to pass it using ng-show?.

user3770093
  • 315
  • 2
  • 11
  • 20