Within the following scenario:
funcao1 = function() {
$.ajax({
success: function(data) {
return data;
}
});
}
funcao2 = function() {
var dados = funcao1();
}
Is it possible to receive, even through promises, the ajax result of funcao1
in funcao2
?