title: AngularJS vs (AnguarJS + jQuery)
body: <p>I have a question about performance when you use only AngularJS with pure JavaScript and when you use AngularJS with jQuery.</p>
  
  <p>ex:</p>
  
  <pre><code>app.directive('fitHeight', function($window) {
      return {
          restrict: 'A',
          link: function(s){
              s.contentminHeight = $window.innerHeight - 40 + 'px';
              var h = $window.innerHeight;
              $(window).resize(function() {
                  if ( h !== $window.innerHeight ) {
                      h = $window.innerHeight;   
                      s.contentminHeight = ( h - 40 ) + 'px';
                      s.$apply();
                  }
              });
          }
      };
  });
  </code></pre>
  
  <p>I saw as the verification with AngularJS of $window resizes is deprecated, and other options was to create a Interval to check, I found jquery.resize more acceptable.</p>
  
  <p>or</p>
  
  <pre><code>app.directive('leftmenuDropdown', function() {
      return {
          restrict: 'C',
          link: function(s, e){    
              e.click(function(){
                  var m = $(e.parent().find("ul")[0]);
                  if ( m.hasClass('dd-open') ) { m.removeClass('dd-open') } else { m.addClass('dd-open') }
              });
          }
      };
  });
  </code></pre>
  
  <p>I search on google and I understood as .hasClass is more fastest than pure JavaScript.</p>
  
  <p>About performance, what I should do? To keep jQuery with AngularJS or to use only AngularJS with pure JS?</p>