Posts by MarceloCP • 21 points
3 posts
-
1
votes2
answers2367
viewsQ: How to send a JSON object in a POST request with ajax?
I need to send a json object with ajax to an external API but cannot include variables instead of static values var numSGPE = document.getElementById('numSGPE').value var setor =…
-
-1
votes1
answer227
viewsQ: useState does not update
I have a function that fetches user information in an API and stores it in a useState, would like to know if I put a console.log to see if stored the data correctly in useState returns me empty but…
-
0
votes1
answer449
viewsQ: Http request with angular 6
I’m trying to consume a REST service that has a basic authentication with angular 6 but I’m not succeeding follow the code I’m using unsuccessfully: public iniciarProcesso(dadosProcesso: string):…