0

In my API call, I want to pass range parameters as arrays like this: enter image description here

This is how I am trying to pass this array to the API:

if (this.price_filter_value = 'Under Rs. 1 Lakh') {
  // this.final_price[0] = [0, 10000];
  // this.final_price[1] = [0, 200000]
  this.final_price = [[0, 10000], [0, 200000]];
}
this.getPortfolioList(this.space_filter_value, this.lifeStage_filter_value, this.theme_filter_value, this.final_price, this.current_page, this.per_page, this.serachedspace);

}

But the API is price range is getting called like this not in array.

enter image description here

Please tell me a approach so that i can pass range as array in Api.

JKD
  • 1,279
  • 1
  • 6
  • 26
manish joshi
  • 55
  • 2
  • 8

0 Answers0