title: AngularJs : Passing parameter to ng-click in directive
body: <p>I have a directive in which i am adding an a button and an ng-click on the button. My code for directive is</p>
  
  <pre><code>AppDirectives.directive(
                  'feed',
                  function() {
                      return {
                          restrict : 'AE',
                          scope : {
                              feedMsg : '@feedText',
                              feedUser : '@feedUser',
                              feedTimestamp : '@feedTimestamp',
                              feedLike : '@feedLike',
                              feedDislike : '@feedDislike',
                              likeClick: '&amp;',
                              dislikeClick :'&amp;',
                              feedUid : '@feedUid'
                          },
                          template : '&lt;div class="media"&gt;'+
                                          '&lt;a class="pull-left" href="#"&gt;&lt;img class="media-object" src="resources/images/holder.png" style="height:64px; width:64px;" alt="img"&gt;&lt;/a&gt;'+
                                          '&lt;div class="media-body"&gt;'+
                                              '&lt;h4 class="media-heading"&gt;{{feedUser}}&lt;/h4&gt;'+
                                              '&lt;h5&gt;{{feedMsg}}&lt;/h5&gt;'+
                                              '&lt;p&gt; &lt;a ng-click="likeClick(feedLike)"&gt;Like&lt;/a&gt; {{feedLike}} &lt;a ng-click="dislikeClick(feedUid)"&gt;Dislike&lt;/a&gt; {{feedLike}} {{ feedTimestamp | date:medium }} &lt;/p&gt;'+
                                          '&lt;/div&gt;'+
                                      '&lt;/div&gt;',
                          replace : true,
  
                      };
                  });
  </code></pre>
  
  <p>my html code is </p>
  
  <pre><code>&lt;feed feed-uid={{feed.uid}} feed-text={{feed.feedText}} feed-user={{feed.userUid}} feed-timestamp={{feed.time}} feed-like={{feed.like}} like-click="likeClick(uid)" dislike-click="dislikeClick(uid)" feed-dislike={{feed.dislike}}&gt;&lt;/feed&gt;
  </code></pre>
  
  <p>and my contoller have </p>
  
  <pre><code>$scope.dislikeClick = function(feedUid){
          console.debug("dislike"+feedUid);
      }
  </code></pre>
  
  <p>When i click on the dislike button, i get <code>'like undefined'</code>, where i am suppor to print the <code>'like uid_of_post'</code>. can any one kindly tell me what is wrong with my code. As {{feedUid}} get the correct value inside the template.</p>