45
rated 0 times
[
50]
[
5]
/ answers: 1 / hits: 15757
/ 6 Years ago, thu, november 8, 2018, 12:00:00
I need to use booleans within form data. For example:
let example = new FormData();
example.append('aBoolean', true);
This throws and error as the above 'true' needs to be in string form. Do you know a way I can use booleans within FormData? Alternatively even a way to cast it as a boolean when I get the value by:
example.get(aBoolean)
Assuming i did store the true as a string in the above example.
More From » angular