I would like to make a synchronous call to server using angular. Something similar to below jquery functionality.
var response = $.ajax(
{
type: "POST",
url: "url",
data: "data",
async: false,
}).responseText;
Thanks