title: Pass element using ng-show AngularJS
body: <p>HTML</p>
  
  <pre><code>&lt;li ng-show="sample($event)" TestLi&lt;/li&gt;
  </code></pre>
  
  <p>Javascript</p>
  
  <pre><code>$scope.sample = function($event){ //$event is undefined
  //do something 
  }
  </code></pre>
  
  <p>I've only tried passing the html element using ng-click but is there a way to pass it using ng-show?.</p>