I'm new to angular7/typescript i want to pass boolean value as a Httpparam, Is it possible ?
let body = new HttpParams();
body = body.set('name', string);
body = body.set('value', boolean);
Issue is how do i pass boolean value
It would help to know what you are trying to do. However, you could do this:
body.set('paramStringName', booleanValueYouWantToPass.toString());
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With