I want to send an HTTP POST request to my backend in Ruby on Rails,
Unfortunately, the backend does not receive any request.
Heres my code:
const params = new HttpParams()
.set('subject', this.dialogForm.controls['subject'].value)
.set('start_date', moment(this.dialogForm.controls['startDatePicker'].value).format('YYYY-MM-DD HH:mm:ss').toString())
.set('due_date', moment(this.dialogForm.controls['dueDatePicker'].value).format('YYYY-MM-DD HH:mm:ss').toString())
.set('description', this.dialogForm.controls['description'].value);
console.log(params);
this.http.post(API_BASE_URL + 'angular_calendar/custom_meetings/create', ' ', {params})
.pipe(
catchError(this.handleError)
);
Does anyone have an idea how to solve this
question from:
https://stackoverflow.com/questions/65918887/angular-backend-http-request 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…