Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var request = $http({
method: "post",
url: "process.cfm",
transformRequest: transformRequestAsFormPost,
data: {
id: 4,
name: "Kim",
status: "Best Friend"
}
});
return new Promise(resolve => {
this.http.post('http://api.local.dev:3000/v1/users', creds, {headers: headers}).subscribe(data => {
if (data.json().success) {
resolve(true);
}
else
resolve(false);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.