title: Angular How to inject post data into a html view
body: <p>I am using node.js and Angular 1.3x Usually I serve up the first page like this:</p>
  
  <pre><code>app.get('/', function(req, res, next) {
    res.sendFile('layouts/my.html', { root: __dirname })
  })
  </code></pre>
  
  <p>and from my.html I access post data like so:</p>
  
  <pre><code>app.get('/api/posts', function(req, res, next) {
    Post.find(function(err, posts) {
      if(err) { return next(err)}
      res.json(posts)
    })
  })
  </code></pre>
  
  <p>How do I combine both of the above things? In other words, I want to call a URL from a non-web application, pass in post data, set angular model to incoming post data and display resulting html page.  </p>