title: Adding a 'like' button in Angular.js
body: <p>I have made a little fiddle of what I am doing, although it won't work in fiddle oddly, but does incrementally add a like in my version: <a href="http://jsfiddle.net/LQFrv/" rel="nofollow">http://jsfiddle.net/LQFrv/</a></p>
  
  <pre><code>function($scope) {
  
  var hasLiked = false;
  
  $scope.likeClicked = function() {
  
      if( hasLiked === false ){
          $scope.likeCount = $scope.likeCount + 1;
      }
  
      hasLiked = true;
  
      if (hasLiked === true) {
          $scope.liked = 'Unlike';
      }
  
  };
  </code></pre>
  
  <p>});</p>
  
  <p>What I am trying to do is: Add a 'like' > disable 'like' and replace with 'unlike' > on next click of element, remove the like</p>
  
  <p>Please help!</p>
  
  <p>Thanks,</p>
  
  <p>JP </p>