1
i’m starting with nodejs now and would like to use typescript to program compiling for pure javascript. So I’m having trouble finding something succinct so I can understand (since I’m a PHP programmer) how to receive post and get requests. For example, in PHP use like this:
$_POST["foo"]
or file_get_contents("php://input")
using angular and Angularjs
or
$_GET["foo"]
Can you help me?
You’re using angular in your Krint project?
– BrTkCa
Yes. I’m using Angular, but at the moment I’m only developing the back-end
– Krint
Do you want to do a post or get request on the back end or on the front end? Because if it’s on the back, you can use the native Node module. If it is what will be transpilated to the front, then I think in Angular or Axios
– BrTkCa
So, actually, I need to know how to receive information by post or get on typescript, got it? For example, my front-end sends the user’s Cpf via post and I need to know how to receive this Cpf using typescript com in the nodejs environment. It’s become clearer now?
– Krint