Transformar retorno de um checkbox
Olá , tenho uma SPA angular onde no meu componente html tte, alguns checkbox, eles retorna boolean, mas meu back end espera uma string , queria saber como transformar esse retorno em string , com os valores true e false mesmo , mas como string.
Emerson Barros
Curtidas 0
Melhor post
Sadasd
02/09/2019
Aqui:
var meubool = true;
function teste(meuboolean) {
var minhastring;
if(meuboolean){
minhastring = "true";
}else{
minhastring = "false";
}
document.write(minhastring);
}
teste(meubool);
GOSTEI 1