title: Can one AngularJS controller call another?
body: <p>Is it possible to have one controller use another?</p>
  
  <p>For example:</p>
  
  <p>This HTML document simply prints a message delivered by the <code>MessageCtrl</code> controller in the <code>messageCtrl.js</code> file.</p>
  
  <pre><code>&lt;html xmlns:ng="http://angularjs.org/"&gt;
  &lt;head&gt;
      &lt;meta charset="utf-8" /&gt;
      &lt;title&gt;Inter Controller Communication&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div ng:controller="MessageCtrl"&gt;
          &lt;p&gt;{{message}}&lt;/p&gt;
      &lt;/div&gt;
  
      &lt;!-- Angular Scripts --&gt;
      &lt;script src="http://code.angularjs.org/angular-0.9.19.js" ng:autobind&gt;&lt;/script&gt;
      &lt;script src="js/messageCtrl.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The controller file contains the following code:</p>
  
  <pre><code>function MessageCtrl()
  {
      this.message = function() { 
          return "The current date is: " + new Date().toString(); 
      };
  }
  </code></pre>
  
  <p>Which simply prints the current date;</p>
  
  <p>If I were to add another controller, <code>DateCtrl</code> which handed the date in a specific format back to <code>MessageCtrl</code>, how would one go about doing this?  The DI framework seems to be concerned with <code>XmlHttpRequests</code> and accessing services.</p>