title: How to include jQuery in AngularJS when using browserify?
body: <p>I'm using node, gulp and browserify to get my JS-Files into the right order and manage modules. I have jQuery and AngularJS installed as node modules and require them when needed. Angular by default uses jqLite to handle DOM-Elements. </p>
  
  <p>I know that when jQuery gets loaded before AngularJS, Angular will use jQuery instead of jqLite.</p>
  
  <p><strong>But how is it possible to get Angular to use jQuery when using browserify. Or: How may one require jQuery to angular?</strong></p>
  
  <p>Now I'm just doing <code>var $ = require("jquery");</code> and use it when I need it. But I'd like to have an Angular that will natively give me jQuery methods when doing  for example:</p>
  
  <pre><code>app.directive("dir", function () {
      return {
          link : function ($scope, $elem) {
              var a = $elem.width();//jQuery methods currently not available here
          }
      };
  });
  </code></pre>
  
  <p>What I actually need to do:</p>
  
  <pre><code>var jQuery = require("jquery");
  
  app.directive("dir", function () {
      return {
          link : function ($scope, $elem) {
              var jqElement = jQuery($elem);
              var a = $jqElement.width();//jQuery methods are available here
          }
      };
  });
  </code></pre>