title: Expose an object from express to angularJS
body: <p>I want to make a data object that is retrieved via express available in an Angular controller. Right now I can use the data object in a jade template if I access it as so...</p>
  
  <pre><code>#{data.mens.pants.jeans}
  </code></pre>
  
  <h3>Express Code</h3>
  
  <pre><code>api.get(query, options)
    .then(function(results) {
      log.info('api response received. rendering...');
      res.render('../mens/views/index', {
        data: {
          query: query,
          item: results
        }
      });
    })
    .error(function(err) {
      errors.renderError(res, err);
    });
   });
  </code></pre>
  
  <h2>What I don't want</h2>
  
  <ul>
  <li>to make another $http call</li>
  <li>to use ng-init</li>
  </ul>
  
  <p>I've tried using a .constant() but a constant can only contain a string.</p>
  
  <p>How do a make an object from express available inside of an angular controller.</p>
  
  <p>Thanks in advance for your time.</p>