title: How to use addClass method in angularjs
body: <p>I have an angularjs directive restricted to class. How can I add this by using addClass method in angularjs</p>
  
  <p><strong>directive</strong></p>
  
  <pre><code>app.directive('number', function() {
  return {
      restrict: 'C',
      link: function () {         
  
      }
  };
  </code></pre>
  
  <p>});</p>
  
  <p><strong>code</strong>   </p>
  
  <pre><code> &lt;div id="test"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>I know it is possible by using jQuery like the following.</p>
  
  <pre><code>$( "#test" ).addClass( "number" );
  </code></pre>
  
  <p>Please help me in doing it by using angularjs</p>