title: Change styles of an item with ng-click event
body: <p>I need to change the background color of an li tag when I click it.</p>
  
  <pre><code>   &lt;ul&gt;
         &lt;li&gt;
            &lt;a ng-click="changeCategory(2)"&gt;Category 1&lt;/a&gt;
         &lt;/li&gt;
         &lt;li&gt;
            &lt;a ng-click="changeCategory(2)"&gt;Category 2&lt;/a&gt;
         &lt;/li&gt;
         &lt;li&gt;
            &lt;a ng-click="changeCategory(3)"&gt;Category 3&lt;/a&gt;
         &lt;/li&gt;
         &lt;li&gt;
            &lt;a ng-click="changeCategory(4)"&gt;Category 4&lt;/a&gt;
         &lt;/li&gt;
     &lt;ul&gt;
  
     $scope.changeCategory = function(id){
  
     }
  </code></pre>
  
  <p>And I only need to change <strong>background color witch I click</strong>. It would be great if anyone can look into it.</p>