I’d like to make the following code cleaner:
this.http.post("http://..........", 'username=' + user + '&password=' + passw, options)
I tried this code but it doesn’t work:
let body = JSON.stringify({
username: user,
password: passw
});
this.http.post("http://..........", body, options)