title: Express Accessing Angular Http Post Data
body: <p>I have been having trouble accessing the data that is passed to express.js from angular http service.</p>
  
  <p>I am using the http service : </p>
  
  <pre><code>$http.post('/someUrl', data, config).then(successCallback, errorCallback);
  </code></pre>
  
  <p>This is what I am doing in angular:</p>
  
  <pre><code>$http.post('/api/topic', {data : topic}).then(successCallback, errorCallback);
  </code></pre>
  
  <p>This is what I am doing on in express:</p>
  
  <pre><code>app.post('/api/topic', function(req,res){console.log(req.data);});
  </code></pre>
  
  <p>We are assuming the topic is an object recieved from angular's frontend.</p>
  
  <pre><code>{
      username : 'dan',
      topic : 'I want to learn more',
      description : 'Where can I learn more about web development',
      category : 'web development'
  }
  </code></pre>
  
  <p>So my question is : How does the backend end using express access the angular http data field?</p>