I am using ASP.NET Core and AngularJS 2. There is a problem with http query parameter. No matter what I try, parameter 'quarter' is not passed to controller. Anyone have idea what ma I missing here ?
getBookingsBySaleUnit() {
let params: URLSearchParams = new URLSearchParams();
params.set('quarter', '1');
let requestOptions = new RequestOptions();
requestOptions.search = params;
this.http.get('/api/method', requestOptions).subscribe(result => {
this.sales = result.json();
}
);
}