title: What does the define function do in AngularJS?
body: <p>Sometimes I see code that looks like this in Angular:</p>
  
  <pre><code>define(['angular', 'module'], function (angular, module) {
    //...
  });
  </code></pre>
  
  <p>What does this do? Whenever I've tried to search for "angularjs define" or "angularjs define function" I see results like "How to define a function in AngularJS" or "AngularJS Defined."</p>
  
  <p>This happens with search engines, and typing this into the search box on the AngularJS website doesn't help either.</p>
  
  <p>Where is the documentation for this?</p>