Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70762

Passing parameter array list on http native get method typescript

$
0
0

@ymphyow wrote:

I am trying to pass array list parameter . parameter codeList contains array like [{“projCode”:“11-1115”,“cblTagNo”:“571_GE001-RC1”},{“projCode”:“11-1115”,“cblTagNo”:“571_GE001-S”}] . but I am facing the error
" invalid params object, needs to be an object with strings".
May I know how to pass the obj array. Here is my http call method.

 this.http.setDataSerializer('json');
console.log(JSON.stringify(codeList));
return this.http.get('http://hostname/cable/v2/cableschedule/key/',codeList,{});
}

I have tried this way . It didn’t work as well. ->
return this.http.get(‘http://hostname/cable/v2/cableschedule/key/’, JSON.stringify(codeList), {});

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70762

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>