Hi,
I tried to send variable data from the angular ts file to the nodejs api but I am not getting any response.
in my ts:
public data="test";
this.http.post("http://localhost:3000/api/v1/upload/",this.data).subscribe();
and in my nodejs server.js I have:
var app2 = express();
app2.post('/api/v1/upload', function(req, res, next){
var data = req.body;
console.log(data);
});
but I am not getting any error and I am not getting anything in console.