odule below has two services, each with various dependencies:</p>
<pre><code class="lang-js">var batchModule = angular.module(&#39;batchModule&#39;, []);

/**
 * The `batchLog` service allows for messages to be queued in memory and flushed
 * to the console.log every 50 seconds.
 *
 * @param {*} message Message to be logged.
 */
batchModule.factory(&#39;batchLog&#39;, [&#39;$interval&#39;, &#39;$log&#39;, function($interval, $log) {
  var messageQueue = [];

  function log() {
    if (messageQueue.length) {