title: Why I can not pass parameter when http.delete in AngularJs?
body: <p>I have function to call http.delete and pass a parameter flag:</p>
  
  <pre><code>function softDeleteDatasource(datasourceId,flag) {
              var url = baseUrl + datasourceId;
              return $http.delete(url, {'currentFieldSetFlag':flag});
          }
  </code></pre>
  
  <p>Then I assume I can get the req.body with following code. However, I always get <code>undefined</code> in the <code>console.log</code>. I used exactly same code in <code>http.post</code> and it works fine when passing parameter.</p>
  
  <pre><code>var bodyParser = require('body-parser');
  var jsonParser = bodyParser.json();
  router.delete('/:datasourceId', jsonParser, function(req, res) {
     console.log(req.body.currentFieldSetFlag);
  }
  </code></pre>
  
  <p>I am confused why the same code can not pass parameter in <code>http.delete</code>? anyone know how to pass it?</p>