title: How to add class CSS after ng-click to parent element?
body: <p>There is HTML code:</p>
  
  <pre><code>&lt;div&gt;
    &lt;span&gt;
      &lt;input ng-click="addClass()" type="checkbox"&gt; 
    &lt;/span&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>How I can add CSS class to parent element <code>div</code> after click at input?</p>
  
  <p>I tried:</p>
  
  <pre><code>ng-click="addClass($event)"
  </code></pre>
  
  <p>Angular JS:</p>
  
  <pre><code>$scope.addClass = function (event){
     event.parent('div').addClass('active');
  }
  </code></pre>