title: Angular 2 http post + Nodejs express
body: <p>I can't get post params on the server. I send post request in Angular 2 app to Nodejs express server.
  Here my code in Angular 2:</p>
  
  <pre><code>import { Injectable } from 'angular2/core';                                                                                                    
  import { Http } from 'angular2/http';
  
  @Injectable()
  export class QueryService {
    static get parameters() {                                                                                                                    
      return [[Http]]                                                                                                            
    }                                                                                                                                            
    constructor(http) {                                                                                                            
      this.http = http;                                                                                                                          
    }
    postApi() {
      var headers = new Headers();
      headers.append('Content-Type', 'application/json');
  
      return this.http.post('http://localhost:3001/post_test', JSON.stringify({"id": 1, "name": "2"}), { headers: headers }).toPromise();
    }                                                                                                                                            
  }
  </code></pre>
  
  <p>In the browser I see that post params was send, for example in chrome section "Request Playload" contains my post data.
  And here my server:</p>
  
  <p>app.js:</p>
  
  <pre><code>var bodyParser = require('body-parser');
  app.use(bodyParser.json());                                                                                                                
  app.use(bodyParser.urlencoded({extended: true}));                                                                                          
  </code></pre>
  
  <p>routes/index.js:</p>
  
  <pre><code>exports.post_test = function(req, res) {
      console.log('post_test ', req.body);
  }
  </code></pre>
  
  <p>and the output is "post_test {}"</p>
  
  <p>I can't understand, where is the problem. Because my server works fine, when I used Angular 1 $http service for post queries.
  Please, help me!</p>