Hi, I am completely new to angular. I need some help in following.
I am uploading a file by calling an api using POST.
$scope.uploadFiles = function () {
var request = {
method: 'POST',
url: 'my-url',
data: formdata,
headers: {
'Content-Type': 'multipart/form-data'
}
};
// SEND THE FILES.
$http(request)
.success(function (d) {
alert(d);
})
.error(function () {
});
}
In response
.success(function(d)), I receive the html script of the page I
need to redirect to for google login.(Screenshot of output is attached.) How can redirecting be achieved? How can that html response be handled?
